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

fix \u in message #50

Merged
merged 1 commit into from Apr 13, 2014
Merged

fix \u in message #50

merged 1 commit into from Apr 13, 2014

Conversation

tg123
Copy link
Contributor

@tg123 tg123 commented Apr 12, 2014

微信比较sb

形如
{"msgtype": "text", "touser": "111", "text": {"content": "\u4f60\u597d"}} 的 json

微信会直接显示出
\u4f60\u597d

这样才能正常工作
{"msgtype": "text", "touser": "111", "text": {"content": "你好"}}

Conflicts:
	werobot/client.py
whtsky added a commit that referenced this pull request Apr 13, 2014
@whtsky whtsky merged commit 16f8dee into offu:develop Apr 13, 2014
@tg123 tg123 deleted the json_body branch April 13, 2014 05:01
@tg123
Copy link
Contributor Author

tg123 commented Apr 13, 2014

@centralman
亲爱的 那个是因为 dumps 后的 东西要写到网络上
和 json 没关系

这个目前有个缺点 就是要求 使用者调用时 dict 自己保证 value unicode
只在python2 运行通过
pytohn3 没有实际测试过

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

Successfully merging this pull request may close these issues.

None yet

3 participants