ksudeep11 / pywebsocket

Automatically exported from code.google.com/p/pywebsocket
0 stars 0 forks source link

Unicode support #83

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. open a pywebsocket connection
2. send a unicode character ('ざ') from the client

What is the expected output? What do you see instead?
The WebSocket should accept the unicode character but instead it fails with an 
out of range error

[warn] [client 71.39.169.14] mod_pywebsocket: 'ascii' codec can't encode 
character u'\\u3056' in position 6: ordinal not in range(128)

What version of the product are you using? On what operating system?
r340 on
Linux ip-10-204-94-139 2.6.21.7-2.ec2.v1.2.fc8xen #1 SMP Fri Nov 20 19:22:36 
EST 2009 i686 i686 i386 GNU/Linux

Please provide any additional information below.
N/A

Original issue reported on code.google.com by sme...@gmail.com on 8 Dec 2010 at 5:42

GoogleCodeExporter commented 9 years ago
What handler, python and client are you using? Using Chrome 7.0.517.44 + 
echo_wsh.py + Apache 2.2.14, we can send and receive non-ASCII character.

Original comment by tyoshino@chromium.org on 10 Dec 2010 at 4:58

GoogleCodeExporter commented 9 years ago
Very sorry about that - there was a line with str(message) in the handler I was 
using. I removed that and it worked. Please close the issue.

Original comment by sme...@gmail.com on 15 Dec 2010 at 8:28

GoogleCodeExporter commented 9 years ago
ok. Thanks

Original comment by tyoshino@chromium.org on 16 Dec 2010 at 1:00