apache/activemq-apollo — pull request #3 by leiqin (2014-04-27 10:55:25+00:00)
Title: add a test cast to shows stomp websocket utf-8 handing failing

a test cast to shows stomp websocket doesn't work with utf-8 string

https://issues.apache.org/jira/browse/APLO-355

the test cast output is here : https://gist.github.com/leiqin/11342525

I notice when I send '你好' from broker to client , the client receive 'ä½ å¥½'

this is something try with python shell:

>>> '你好'
'\xe4\xbd\xa0\xe5\xa5\xbd'
>>> u'你好'
u'\u4f60\u597d'
>>> 'ä½ å¥'
'\xc3\xa4\xc2\xbd \xc3\xa5\xc2\xa5'
>>> u'ä½ å¥'
u'\xe4\xbd \xe5\xa5'
>>> print u'\xe4\xbd\xa0\xe5\xa5\xbd'
ä½ å¥½

I think may be the borker read by byte from utf-8 string and send the bytes as utf-8 string to websocket,
and do the reverse when it receive message from websocket .