Uploaded image for project: 'XMLBeans'
  1. XMLBeans
  2. XMLBEANS-332

XMLBeans changes surrogate pair bytes to question marks

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: Version 2.2
    • Fix Version/s: Version 3.0.0
    • Component/s: None
    • Labels:
      None

      Description

      I can't debug this problem because I can't find the 2.2.0 source code anywhere and XMLBeans does not appear to have any commons-logging which I can turn on. So I'm just throwing what I have into this issue, hoping that an XMLBeans developer can look at the problem more in-depth.

      The attached zip file contains an xml file with Unicode surrogate pairs - these pairs are a notoriously hard Unicode edge case to handle. XMLBeans appears to be turning pairs into question marks when emitting the XMLBean using the xmlText or toString methods.

      The attachment contains a JUnit test case which reproduces the problem on XMLBeans 2.2.0.

        Attachments

          Activity

            People

            • Assignee:
              pj.fanning PJ Fanning
              Reporter:
              mperham Mike Perham
            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: