Issue 82358 - XML document saved by submission of XForms have incorrect encoding
Summary: XML document saved by submission of XForms have incorrect encoding
Status: UNCONFIRMED
Alias: None
Product: General
Classification: Code
Component: code (show other issues)
Version: OOo 2.2
Hardware: All Linux, all
: P3 Trivial (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords: needhelp
Depends on:
Blocks:
 
Reported: 2007-10-07 19:59 UTC by zhangweiwu
Modified: 2014-02-12 19:11 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
XML Form document that used to produce the buggy XML file. (9.09 KB, application/vnd.oasis.opendocument.text)
2007-10-07 20:00 UTC, zhangweiwu
no flags Details
The buggy XML file submitted (420 bytes, text/xml)
2007-10-07 20:01 UTC, zhangweiwu
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description zhangweiwu 2007-10-07 19:59:37 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.
Comment 1 zhangweiwu 2007-10-07 20:00:48 UTC
Created attachment 48733 [details]
XML Form document that used to produce the buggy XML file.
Comment 2 zhangweiwu 2007-10-07 20:01:32 UTC
Created attachment 48734 [details]
The buggy XML file submitted