Hi,

I had errors when receiving string with unicode char like 'é' using the
hessianlib.py available at: http://hessian.caucho.com/download/hessianlib.py

Hereunder you will find a patch that allows to parse string with these
chars. I'm not a python specialist, so there may be a better way to do it,
but at least it work :-).

Best regards,

Bruno

    364,374c364
<       i = 0
<       buf = ''
<       while i<len :
<               char = f.read(1)
<               try:
<                       uni = unicode(char,'utf-8')
<               except UnicodeDecodeError:
<                       char = char + f.read(1)
<               buf = buf + char
<               i+=1
<       return buf
---
>       return f.read(len)
_______________________________________________
hessian-interest mailing list
[email protected]
http://maillist.caucho.com/mailman/listinfo/hessian-interest

Reply via email to