Skip to content

Can't send accented characters. #3

@aaronscherbing

Description

@aaronscherbing

I've been using your WebSocketStompKit library. Pretty great! Thanks for making it.

I noticed an issue when trying to send special characters like é. The count is calculated incorrectly, resulting in a failure to send the message.

I think there's a fix on line 372 of WebSocketStompKit.m. You just need to calculate the length using UTF-8.

So the calculation should be:
[body lengthOfBytesUsingEncoding:NSUTF8StringEncoding]

in this file:

https://github.com/rguldener/WebsocketStompKit/blob/master/WebsocketStompKit/WebsocketStompKit.m#L372

Thanks again for this library.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions