I use Wechat Public platform
to send some content. And the code is:
# coding:utf-8
import os
import urllib2
import json
import httplib2)
content = "一些中文"
body = {
"touser":"abcdefg",
"msgtype":"text",
"text":
{
"content": content
}
}
access_token = '1234567890'
req_url = 'https://api.weixin.qq.com/cgi-bin/message/custom/send?access_token=' + access_token
method = 'POST'
headers['Content-Type'] = 'application/json'
headers['Accept-Charset'] = 'encoding=utf-8'
resp, token = http_obj.request(req_url, method, headers=headers, body=json.dumps(body))
I receive \u4e00\u4e9b\u4e2d\u6587 not when I run 一些中文 the program. What should I do if I want to receive 一些中文?? Thanks a lot !