Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 4.2
-
Component/s: None
-
Labels:None
-
Environment:any
-
ICEsoft Forum Reference:
Description
The community member brought to my attention an encoding issue with some Greek characters in the form attached document.
Activity
- All
- Comments
- History
- Activity
- Remote Attachments
- Subversion
If you take a look at the OutlineItem.java class the method getTitle() does a bunch a work to property encode the title.
From my initial analysis the the getBytes() call is not applying the correct encoding and the resulting byte stream isn't correct.
I've have to do a bunch of regression testing but I think the getBytes() call should be removed and the following for loop should be replaced with:
for (int i = 2; i < hexTmp.length(); i += 2) {
{ int b1 = ((int) hexTmp.charAt(i)) & 0xFF; int b2 = ((int) hexTmp.charAt(i + 1)) & 0xFF; sb1.append((char) (b1 * 256 + b2)); }try
catch (Exception ex)
{ // intentionally left blank. }}