S
Simon B. Nielsen
I have a text fil with foreign characters I need to import.
I read it using this:
StreamReader sr = new StreamReader("@import/user.dat",
System.Text.Encoding.GetEncoding(850));
while(sr.Peek() > -1)
{
string myLine = sr.ReadLine();
myLine.Replace("ø", "ø") // Just an example
Console.WriteLine(myLine);
}
Problem is that "ø" is never replaced with "ø" when calling my
Import.exe. If I on the other hand calls Import.exe > output.log I see the
"ø" correctly. Fact is that the "ø" is never replaced.
Any ideas?
I read it using this:
StreamReader sr = new StreamReader("@import/user.dat",
System.Text.Encoding.GetEncoding(850));
while(sr.Peek() > -1)
{
string myLine = sr.ReadLine();
myLine.Replace("ø", "ø") // Just an example
Console.WriteLine(myLine);
}
Problem is that "ø" is never replaced with "ø" when calling my
Import.exe. If I on the other hand calls Import.exe > output.log I see the
"ø" correctly. Fact is that the "ø" is never replaced.
Any ideas?