escapeIllegalXmlChars

Hi,

I’m tring to save a xml document.
There are multi-byte strings in the doc.

In that case, these string are translated like &#foo; by escapeIllegalXmlChars.

The third argment of the XmlElement::writeToFile is encoding type.
But I think this implement ignores the encoding-type absolutely.

Best regards,
ioue

It does ignore the encoding type at the moment (it’s just there to let you specify what string goes in the document header), but should write it correctly as utf8. Are you saying the utf8 is wrong?

Centainly these strings are collectly escaped.
But they are not human-readable…
I think these characters have not to be escaped. They are not illegal.

Not all editors might cope with them correctly though - that’s why it escapes them for safety. I see your point though, I’ll have a think about it.