469,920 Members | 2,388 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,920 developers. It's quick & easy.

C# XmlTextReader encoding problem - Cannot read hyphens

1
Hi all,

I am trying to read an XML file, which has the encoding:

<?xml version="1.0" encoding="ISO-8859-1"?>

I then iterate through the elements until I find the element I want, then I get the entire content of that element with:

Expand|Select|Wrap|Line Numbers
  1. string content = reader.ReadInnerXml();
BUT for some reason this does not decode hyphens within the text. Then I view the value of "content", any hyphens are shown as ?. What can I do to either solve this, or strip out the damage characters.

Cheers, and thanks in advance.
Jul 23 '08 #1
0 1127

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

3 posts views Thread by Brad Wood | last post: by
4 posts views Thread by CodeRazor | last post: by
reply views Thread by Waqarahmed | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.