Michael Maechtel wrote:
> when I save my doc with ISO-8859-1 encoding, all special characters used e.g.
> from the 0x2200 (unicode) table are lost. It works with UTF-8. Now I am a
> bit confused with the encoding, since I do not understand why the character
> codes are lost, when I save my doc with ISO-8859-1 ... I thought, all other
> codings are still available as subsets .. but maybe i totally lost here ;-)
> 
> Maybe the truth is anywhere out there and someone could explain a newbie, 
> how it should work ...

0x2200 is not part of the ISO-8859-1 charset. One way to save this char. 
would be to generate "&#0x2200;" in the XML file.

XXE only does this only if you choose "US-ASCII" as the encoding of your 
save files. The rationale is: currently, for performance reasons, XXE 
does not test to see if each character is included in the chosen charset.

In summary:

* If you want to generate ISO-8859-1 files with XXE, do not use 
characters such as 0x2200.

* If you really need these characters, choose UTF-8 or US-ASCII as your 
preferred encoding.

PS: in V2.5, we'll extend to ISO-8859-1 what is done for US-ASCII (but 
what I said above will still be true if you choose for example ISO-8859-15).



Reply via email to