activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From leiqin <...@git.apache.org>
Subject [GitHub] activemq-apollo pull request: add a test cast to shows stomp webso...
Date Sun, 27 Apr 2014 10:55:29 GMT
GitHub user leiqin opened a pull request:

    https://github.com/apache/activemq-apollo/pull/3

    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 .

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/leiqin/activemq-apollo trunk

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/activemq-apollo/pull/3.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #3
    
----
commit 35c3c798e6eb346238bbc5490b378df3a6df911e
Author: leiqin <leiqin2010@gmail.com>
Date:   2014-04-27T10:32:26Z

    add a test cast to shows stomp websocket utf-8 handing failing

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message