adds better unicode support to herb

This commit is contained in:
Joe Bryan 2019-07-18 20:05:50 -07:00
parent c8f823fd92
commit 2a8875c29c

View File

@ -391,7 +391,7 @@ url = "http://localhost:%s" % PORT
r = requests.post(url, data=json.dumps(payload))
if r.text[0] == '"':
print r.text[1:-1].decode('string_escape')
print r.text[1:-1].encode('utf-8').decode('string_escape')
elif r.text[0] == '{':
# print r.text
json_data = json.loads(r.text)