How to encode non-ASCII characters in XML.

XML is the most widely used file format in computer world. What if you have a character that is not ASCII, how to put it into the XML? The answer is simple, encode it either in character entity or in unicode.

Here is an example of encoding the character using character entity,

; is encoded as &

Here is an example of encoing the character in hexdecimal unicode format,


 For details, please see

Skip to main content