encoding question

G

Guest

I have a page where I get the data from DB as a DataSet. Use the
DataSet.GetXml() and load the XML in to a XMLDocument. Then use a XSL
stylesheet to render the page. In this process I am not able to display the
special characters such as Pound Symbol as is ... instead it comesout as "£".
I am not sure where I need to fix this. If I bind the same DataSet to a
grid, it displays the Pound symbol correctly. Any suggestions are greatly
appreciated.
 
J

Jon Skeet [C# MVP]

exBK said:
I have a page where I get the data from DB as a DataSet. Use the
DataSet.GetXml() and load the XML in to a XMLDocument. Then use a XSL
stylesheet to render the page. In this process I am not able to display the
special characters such as Pound Symbol as is ... instead it comesout as "?".
I am not sure where I need to fix this. If I bind the same DataSet to a
grid, it displays the Pound symbol correctly. Any suggestions are greatly
appreciated.

See http://www.pobox.com/~skeet/csharp/debuggingunicode.html for my way
of identifying where this kind of problem lies.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top