Missing chars after reading line

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I'm just developing a .net (compact) application and therefore make use of
the StreamReader class - and especially the ReadLine function. Now, when I
try to read lines from a text file that includes 'german' strings with
specific chars (like ä,ü,ö, etc.) they do not appear in the returned string.
What's wrong here?

By the way, if it is of any importance, I currently use an english version
of VS.net 2003 - that's why there's also an english .net framework installed
on the pocket pc I'm testing on.

Greetings,
Andreas
 
Andreas said:
I'm just developing a .net (compact) application and therefore make use of
the StreamReader class - and especially the ReadLine function. Now, when I
try to read lines from a text file that includes 'german' strings with
specific chars (like ?,?,?, etc.) they do not appear in the returned string.
What's wrong here?

By the way, if it is of any importance, I currently use an english version
of VS.net 2003 - that's why there's also an english .net framework installed
on the pocket pc I'm testing on.

Chances are you're using the wrong encoding.

See http://www.pobox.com/~skeet/csharp/unicode.html
 
Back
Top