How do I escape unicode character 0x1F in xml? -
I need to write a text with the Unicode character 0x1F in the UTF-8 document (this is not an allowed character in xml ). Is there a way to escape it, or do I have to leave it?
This will do XML 1.1 (but frustrated):
& # 31;
This is not supported at all in XML 1.0. A workaround is a Basic-64 encode that contains the letter containing the text.
Comments
Post a Comment