From 90648f9e65364f8b8089b07a1aaaacf6d66d51fa Mon Sep 17 00:00:00 2001 From: j Date: Mon, 11 Jan 2016 15:54:36 +0530 Subject: [PATCH] store json as utf-8 --- oml/json_pickler.py | 1 + 1 file changed, 1 insertion(+) diff --git a/oml/json_pickler.py b/oml/json_pickler.py index 1eabaaf..79aa338 100644 --- a/oml/json_pickler.py +++ b/oml/json_pickler.py @@ -8,4 +8,5 @@ def loads(*args, **kwargs): def dumps(*args, **kwargs): #print('dumps', args, kwargs) + kwargs['ensure_ascii'] = False return json.dumps(*args, **kwargs).encode()