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

Python plugin encoding #233

Closed
roose opened this issue Jan 11, 2015 · 1 comment
Closed

Python plugin encoding #233

roose opened this issue Jan 11, 2015 · 1 comment
Assignees
Labels
Milestone

Comments

@roose
Copy link
Contributor

roose commented Jan 11, 2015

Now, encoding is gb2312, but i use cp1251. Need detect system encoding or use https://pypi.python.org/pypi/chardet please

# ...
import chardet
# ...
rpc_request = json.loads(sys.argv[1],encoding=chardet.detect(sys.argv[1])["encoding"])
# ...

work for me on cyrillic and chinese, test please on you system

qianlifeng added a commit that referenced this issue Jan 13, 2015
@qianlifeng
Copy link
Member

I have tested chinese and english, it's ok, and I pushed those changes to v1.2.0

@qianlifeng qianlifeng added this to the V1.2.0 milestone Jan 19, 2015
@qianlifeng qianlifeng added the bug label Jan 19, 2015
@qianlifeng qianlifeng self-assigned this Jan 19, 2015
bao-qian pushed a commit that referenced this issue Dec 19, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants