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

当subscribe接收到的message是中文时,unpack不能解包 #7

Open
songqii opened this issue Jun 20, 2019 · 1 comment
Open

Comments

@songqii
Copy link

songqii commented Jun 20, 2019

Binary.php中,readString的for循环里,当$v小于等于0时,不做chr处理,导致中文出不来。

@moolex
Copy link
Owner

moolex commented Jun 20, 2019

msg 里包含中文 Unicode 的话可以在使用前通过 \NSQClient\SDK::setStringPack(false); 来关闭字符 pack 功能

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

2 participants