escapeIllegalXmlChars


#1

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


#2

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?


#3

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.


#4

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.


#5