UTF-8 message decoding within XMLLightweightParser

Description

See http://www.igniterealtime.org/community/message/171554 for a discussion.
"... After checking XMLLightweightParser, it seems to me that the following code: if (lastChar >= 0xfff0) {..."

Environment

any

Attachments

4

Activity

Show:

Daryl Herzmann 
February 12, 2012 at 6:49 PM

LG notes this should be closed as a dup of

LG 
January 14, 2012 at 8:16 PM

Should be closed as duplicate of and thus also fixed with 3.7.1.

Daniel Haigh 
August 9, 2011 at 9:23 AM

I just noticed which looks like the same issue as being discussed here, so our fix for this may be redundant.

However - is the initial issue reported by LG still relevant?

Daniel Haigh 
August 9, 2011 at 8:50 AM

One of our staff have developed a complete fix for this issue which looks very solid.
We are doing some final testing on the latest release then will provide the update.

Daniel Haigh 
February 16, 2011 at 4:23 AM

Yes I am pretty certain Russian is 4 byte UTF-8. The fix I put in only addresses 3 byte but the theory is simple to get this working for 4 byte as well just by following the same logic in my code. Only problem is I am not the best Java programmer so it would be great if someone else could pick this up, fix this issue and close this one off. I expect it wouldn't be difficult - my fix was only a few lines of extra code.

Duplicate

Details

Assignee

Reporter

Components

Fix versions

Affects versions

Priority

Created May 22, 2008 at 2:17 AM
Updated February 12, 2012 at 6:49 PM
Resolved February 12, 2012 at 6:49 PM