Closed datafatmunger closed 10 years ago
I'd be happy to look at adding this if you can write me some unit tests to show the issue.
Cheers.
I plan on it. Just need to make some time. Perhaps this weekend. The test is simple you can't assume the content length is equal to the string length when dealing with UTF8.
Cheers, if you don't get time please let me know and I'll try and knock something up.
Is there going to be any movement on this pull request? Just ran into this issue and would like to know.
I can merge it in I'd just rather have a failing test to show the use case first. Any chance you could PR one @jangie?
Just as a note, the first test is passing [expected, it's all single-byte UTF-8 characters], whereas the second one is failing, as each of the characters in the body of the message in that test is actually three bytes of data.
While the characters I have chosen may not commonly come up (especially the snowman), this would be a problem for many more non-fun use cases (see, for example, Korean/Chinese/Japanese characters)
Here is the fix for the utf8 support I created an issue about. Thanks for your work on the module!