Encodes all non-ASCII characters, as well as characters not valid in XML documents using numeric hexadecimal reference (eg. ü).
ü
Have a look at escapeUTF8 if you want a more concise output at the expense of reduced transportability.
escapeUTF8
String to escape.
Encodes all non-ASCII characters, as well as characters not valid in XML documents using XML entities.
If a character has no equivalent entity, a numeric hexadecimal reference (eg. ü) will be used.
Encodes all non-ASCII characters, as well as characters not valid in XML documents using numeric hexadecimal reference (eg.
ü
).Have a look at
escapeUTF8
if you want a more concise output at the expense of reduced transportability.Param: data
String to escape.