How do I escape unicode character 0x1F in xml? How do I escape unicode character 0x1F in xml? xml xml

How do I escape unicode character 0x1F in xml?


This will do it in XML 1.1 (but is discouraged):



It isn't supported at all in XML 1.0. A workaround is to base-64 encode the text containing the character.


Using 0x1F XML is illegal (http://www.w3.org/TR/xml11/#charsets).so there is no way to do it, except from encoding it yourself in some way. base-64 (as proposed), or url encode, or any other option that the xml does not understand.It is the same problem as storing binary data in xml.