Mantis - Hessian
Viewing Issue Advanced Details
4016 minor always 04-27-10 08:13 04-27-10 08:13
ferg  
 
normal  
new  
open  
none    
none  
0004016: utf-8 toString conversion
(rep by Tahi Walcher)

ppears we have hit a bug in Hessian relating to UTF-8 encoding. When UTF-8 strings are received by Hessian, they ?lose? their encoding and turn into rubbish characters.

 

 

We have isolated the bug to the following:

 

com.caucho.hessian.io. HessianInput.readString(), line 795 (v4.0.1 of hessian):

 

                return _sbuf.toString();

 

should correctly handle UTF-8 strings, i.e.

 

                return new String(_sbuf.toString().getBytes(), "UTF-8");

 

 

There are no notes attached to this issue.