How about trying utf8
Main Topics
Browse All TopicsI'm having an issue with special characters being replaces by '?' in the xml document. A simple example is "école" comes out as "?cole".
I am setting an encoding on the xml document like this:
xmldecl = XMLoutPut.CreateXmlDeclara
xmldecl.Encoding="ISO-8859
XMLoutPut.InsertBefore(xml
Later when I load the xml document with the following method:
xmldocument.Load(xr); (where xr is a XmlTextReader object)
In quickwatch I can see my Encoding to be set as ISO-8859-1, but I still get '?' where special characters should go.
I also tried UTF-16, but I get the error: "There is no Unicode byte order mark. Cannot switch to Unicode" on the .Load function call.
Thanks in advance.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Try doing this in the XML doc:
<!-- ********** -->
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE documentElement [
<!ENTITY e "é">
]>
<documentElement>
<element attribute="&ecole" />
</documentElement>
<!-- ********** -->
Note that the é character is now represented as &e in the xml doc. Let me know if this helps. Take care.
Business Accounts
Answer for Membership
by: bloodredsunPosted on 2005-01-05 at 09:35:23ID: 12964267
If the XmlDocument is saved to either a TextWriter or an XmlTextWriter, this encoding value is discarded. That isn't happening is it? If it is, the value of the TextWriter or an XmlTextWriter encoding is used.