Apache OpenOffice (AOO) Bugzilla – Issue 82358
XML document saved by submission of XForms have incorrect encoding
Last modified: 2014-02-12 19:11:05 UTC
reproduce: 1) open attached XML Form document (note Chinese font is necessary) 2) fill all text input box with some Chinese characters (you can copy & past near-by characters) and submit the form, it would write the file:///tmp/test.xml 3) check the submitted XML (I also attached it in this email) The Chinese characters in tag name are encoded in UTF-8 The Chinese characters in text nodes are encoded as XML entities. The XML file doesn't have encoding="UTF-8" Expected: Using UTF-8 encoded tag name (Chinese characters) while not setting encoding="UTF-8" wouldn't be appreciate. The best would be setting encoding to "UTF-8", and don't even use entities for text nodes.
Created attachment 48733 [details] XML Form document that used to produce the buggy XML file.
Created attachment 48734 [details] The buggy XML file submitted