Uploaded image for project: 'Causeway'
  1. Causeway
  2. CAUSEWAY-269

The XML object store cannot handle all "char" values

    XMLWordPrintableJSON

Details

    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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            kevin-m Kevin Meyer
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: