Explorar o código

Allow unicode chars in tipuesearch_content.json

Artemy Tregubenko %!s(int64=10) %!d(string=hai) anos
pai
achega
a5763b2ba2
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      tipue_search/tipue_search.py

+ 1 - 1
tipue_search/tipue_search.py

@@ -103,7 +103,7 @@ class Tipue_Search_JSON_Generator(object):
         root_node = {'pages': self.json_nodes}
 
         with open(path, 'w', encoding='utf-8') as fd:
-            json.dump(root_node, fd, separators=(',', ':'))
+            json.dump(root_node, fd, separators=(',', ':'), ensure_ascii=False)
 
 
 def get_generators(generators):