XmlTextWriter and Extended ASCII

  • Thread starter Thread starter qwertie79
  • Start date Start date
Q

qwertie79

I am using XmlTextWriter to extract data into XML. The problem is that
I cannot get XmlTextWriter to support the extended ASCII. Everytime it
runs across an extended ASCII character, the XmlTextWriter will
translate it into '?'.

Is there a way to get around this or am I doing something wrong?
Thank you
Chad
 
qwertie79 said:
I am using XmlTextWriter to extract data into XML. The problem is that
I cannot get XmlTextWriter to support the extended ASCII. Everytime it
runs across an extended ASCII character, the XmlTextWriter will
translate it into '?'.

Is there a way to get around this or am I doing something wrong?

There is no one character set "extended ASCII". There are many single
byte character sets which use ASCII for values < 128 - which of them
are you talking about?

As for XmlTextWriter translating it into '?' - which encoding is your
XmlTextWriter using, and what are you using to read in the file to
check it?

See http://www.pobox.com/~skeet/csharp/unicode.html for information
about Unicode and .NET.
 
Back
Top