You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xmlbeans.apache.org by "Mike Perham (JIRA)" <xm...@xml.apache.org> on 2007/05/30 17:11:16 UTC
[jira] Created: (XMLBEANS-332) XMLBeans changes surrogate pair
bytes to question marks
XMLBeans changes surrogate pair bytes to question marks
-------------------------------------------------------
Key: XMLBEANS-332
URL: https://issues.apache.org/jira/browse/XMLBEANS-332
Project: XMLBeans
Issue Type: Bug
Affects Versions: Version 2.2
Reporter: Mike Perham
Attachments: XMLBEANS-332.zip
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.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org
[jira] Commented: (XMLBEANS-332) XMLBeans changes surrogate pair
bytes to question marks
Posted by "Mike Perham (JIRA)" <xm...@xml.apache.org>.
[ https://issues.apache.org/jira/browse/XMLBEANS-332?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12500160 ]
Mike Perham commented on XMLBEANS-332:
--------------------------------------
It appears that attribute values *are* serialized correctly and only element values seem to have this issue.
> XMLBeans changes surrogate pair bytes to question marks
> -------------------------------------------------------
>
> Key: XMLBEANS-332
> URL: https://issues.apache.org/jira/browse/XMLBEANS-332
> Project: XMLBeans
> Issue Type: Bug
> Affects Versions: Version 2.2
> Reporter: Mike Perham
> Attachments: XMLBEANS-332.zip
>
>
> 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.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org
[jira] Commented: (XMLBEANS-332) XMLBeans changes surrogate pair
bytes to question marks
Posted by "Mike Perham (JIRA)" <xm...@xml.apache.org>.
[ https://issues.apache.org/jira/browse/XMLBEANS-332?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12500433 ]
Mike Perham commented on XMLBEANS-332:
--------------------------------------
Jacob, I'm not clear what you expect to see. My theory is that with correct behavior, you should never see 4 question marks printed in a row anywhere in the XML. The correct output is "??abc?".
> XMLBeans changes surrogate pair bytes to question marks
> -------------------------------------------------------
>
> Key: XMLBEANS-332
> URL: https://issues.apache.org/jira/browse/XMLBEANS-332
> Project: XMLBeans
> Issue Type: Bug
> Affects Versions: Version 2.2
> Reporter: Mike Perham
> Attachments: XMLBEANS-332.zip
>
>
> 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.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org
[jira] Updated: (XMLBEANS-332) XMLBeans changes surrogate pair
bytes to question marks
Posted by "Mike Perham (JIRA)" <xm...@xml.apache.org>.
[ https://issues.apache.org/jira/browse/XMLBEANS-332?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mike Perham updated XMLBEANS-332:
---------------------------------
Attachment: XMLBEANS-332.zip
> XMLBeans changes surrogate pair bytes to question marks
> -------------------------------------------------------
>
> Key: XMLBEANS-332
> URL: https://issues.apache.org/jira/browse/XMLBEANS-332
> Project: XMLBeans
> Issue Type: Bug
> Affects Versions: Version 2.2
> Reporter: Mike Perham
> Attachments: XMLBEANS-332.zip
>
>
> 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.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org
[jira] Commented: (XMLBEANS-332) XMLBeans changes surrogate pair
bytes to question marks
Posted by "Jacob Danner (JIRA)" <xm...@xml.apache.org>.
[ https://issues.apache.org/jira/browse/XMLBEANS-332?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12500300 ]
Jacob Danner commented on XMLBEANS-332:
---------------------------------------
This is interesting:
I get the following output from the program. The program works if you save out td and recall it again.
value: ??abc?
xmlText: <Test attr="??abc?" xmlns="http://foo">
<elem>????abc??</elem>
</Test>
OUTPUT: <?xml version="1.0" encoding="UTF-8"?>
<Test attr="??abc?" xmlns="http://foo">
<elem>????abc??</elem>
</Test>
> XMLBeans changes surrogate pair bytes to question marks
> -------------------------------------------------------
>
> Key: XMLBEANS-332
> URL: https://issues.apache.org/jira/browse/XMLBEANS-332
> Project: XMLBeans
> Issue Type: Bug
> Affects Versions: Version 2.2
> Reporter: Mike Perham
> Attachments: XMLBEANS-332.zip
>
>
> 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.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org