You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by leiqin <gi...@git.apache.org> on 2014/04/27 12:55:29 UTC

[GitHub] activemq-apollo pull request: add a test cast to shows stomp webso...

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 <le...@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.
---

[GitHub] activemq-apollo pull request: add a test cast to shows stomp webso...

Posted by leiqin <gi...@git.apache.org>.
Github user leiqin closed the pull request at:

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


---
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.
---