Gerhard Kroder wrote: > i'm testing XMLmind XML Editor (V2.7p1) and found a problem using german > "umlauts" within a xml source code. I know to and i did set <?xml > version="1.0" encoding="ISO-8859-1" ?> in a master file, but still i > encounter errors that prevent loading xml docs, that contain a umlaut, > at it's first line/row occurance. The whole document is splittet in > several subfiles, that get refereced by master file like "<!ENTITY > chapter2 SYSTEM "ch_basics.xml">" and "&chapter2;" > > Any ideas? Running Linux (Debian/sarge, 2.6.8 kernel, 1.4.1 Sun JRE), my > locale do support umlauts in general.
Solving this is easy. Use the Options dialog box, Save tab and specify "ISO-8859-1" using the Encoding combobox. * Specifying "<?xml version="1.0" encoding="ISO-8859-1"?>" in the master file just specifying the encoding of *this* master file and has no effect on the way XXE saves its documents. * By default (i.e. out of the box), XXE saves its documents using UTF-8 (with the proper XML declaration). * If, using a text editor, you add the wrong XML declaration "<?xml version="1.0" encoding="ISO-8859-1"?>" to an UTF-8 encoded file, OR if, using a text editor, in an UTF-8 encoded file, you replace UTF-8 bytes "??" by ISO-8859-1 byte "?", you'll get a non-well formed XML document that XXE will not be able to open. In such case, you need to fix the document using a text editor to get an XML file where the XML declaration and the bytes it contains are completely consistent.

