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

编码问题 #1

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

编码问题 #1

blockchainguard opened this issue May 13, 2019 · 0 comments

Comments

@blockchainguard
Copy link

#!/usr/bin/env python
#coding=utf-8
import tornado.web
import json
import sys
import uniout
reload(sys)
sys.setdefaultencoding('utf-8')

获取到的数据设置了utf-8还是显示 unicode字符,中文的话就是直接编码了

用户名:[u'sss@qq.com'] 密码:[u'xxxxxx1111']

用户名:[u'\u70b9\u70b9\u6ef4\u6ef4']

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