Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Length should be utf-8 bytes array length #13

Open
ecyuan opened this issue May 13, 2019 · 0 comments
Open

Length should be utf-8 bytes array length #13

ecyuan opened this issue May 13, 2019 · 0 comments

Comments

@ecyuan
Copy link

ecyuan commented May 13, 2019

https://github.com/dubbo/hessian-lite/blob/5a74492fb347b358bbc19350b695d082171ad3e9/src/main/java/com/alibaba/com/caucho/hessian/io/Hessian2Output.java#L891
Here should use utf-8 bytes array length, not chars length. Emoji chars's length is 2 in Java, but other language eg. PHP is 4.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant