text streams and extended characters

  • Thread starter Thread starter Wayne M J
  • Start date Start date
W

Wayne M J

One of the text files that I am do some processing of has extended
characters (ö etc), but so far every time one of those characters are
encountered, it is removed.

How do I keep then from being munged when reading/writing?
 
Wayne M J said:
One of the text files that I am do some processing of has extended
characters (ö etc), but so far every time one of those characters are
encountered, it is removed.

How do I keep then from being munged when reading/writing?

Firstly, you need to know *exactly* what you mean by "extended
characters" and then use the correct Encoding to convert from binary to
text.

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