Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Won't Fix
-
0.2.0-incubating
-
None
Description
The XML object store relies on "facet.toEncodedString(associatedObject)" to return an XML compatible representation of the property value.
For "char", this encoded string is the raw character.
Which for values < 32, kills the XML decoder with "invalid unicode character .." exceptions.
e.g. for character value (char) (20):
The exception is:
[Fatal Error] :6:31: An invalid XML character (Unicode: 0x14) was found in the element content of the document.
The XML file contains:
<value field="charProperty">|</value>
(The actual character did not survive "copy&paste")
If I use (char) 255:
The XML file contains:
<value field="charProperty">ΓΏ</value>
Whether this is a problem with the char encoder or XML, is perhaps up for debate.