Quantcast
Channel: Non-unicode XML representation - Stack Overflow
Browsing index pages (3 articles)

Non-unicode XML representation

I have xml where some of the element values are unicode characters. Is it possible to represent this in an ANSI encoding?E.g.<?xml version="1.0"...

View Article


Answer by Blair Conrad for Non-unicode XML representation

If I understand the question, then yes. You just need a ; after the 27544:<?xml version="1.0" encoding="Windows-1252"?><xml><value>&#27544;</value></xml>Or are you...

View Article


Answer by Richard Nienaber for Non-unicode XML representation

Okay I tested it with the following code: string xml = "<?xml version=\"1.0\" encoding=\"utf-8\"?><xml><value>受</value></xml>"; XmlWriterSettings settings = new...

View Article
Browsing index pages (3 articles)


Latest Images