Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 6.1.25
-
Fix Version/s: 6.1.27
-
Component/s: None
-
Labels:None
-
Testcase included:yes
-
Patch Submitted:Yes
-
Number of attachments :
Description
In the Apache Solr project, we had some problems with jetty supporting Unicode characters outside
of the basic multilingual plane (codepoints greater than 0xffff).
The problem boils down to Utf8StringBuffer, all of the utf8 logic looks generally correct, but at
the end when it is time to append to the underlying StringBuffer, it needs to append the two
UTF-16 surrogates for characters in this range... its a rather simple fix.
The patch is against http://svn.codehaus.org/jetty/jetty/branches/jetty-6.1 (I hope this is correct?)
Issue Links
- duplicates
-
JETTY-1328
org.mortbay.jetty.HttpConnection.printWriter("UTF-8") returns a broken UTF-8 writer wrt. Strings containing surrogate characters
-
updated patch, there was a similar bug in the UTF8 writer as well (I added a new test for this one)
Now everything appears to work with all of unicode in jetty.