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

When use in language : zh-CN, connection.rb should do code translate #16

Open
kiddy818 opened this issue Apr 9, 2019 · 0 comments
Open

Comments

@kiddy818
Copy link

kiddy818 commented Apr 9, 2019

change "send_data_to_socket(packet.to_json)" to "send_data_to_socket(JSON.iconv("GBK", "UTF-8", packet.to_json))"
and
change "DataPacket.parse(raw_response)" to DataPacket.parse(JSON.iconv("UTF-8", "GBK", raw_response))"

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