Issue with printing unicode non-english characters #8425 patch
This commit is contained in:
parent
e90d2573d1
commit
5165dfa2df
1 changed files with 2 additions and 2 deletions
|
@ -205,9 +205,9 @@ def jsonify(result, format=False):
|
|||
if type(value) is str:
|
||||
result2[key] = value.decode('utf-8', 'ignore')
|
||||
if format:
|
||||
return json.dumps(result2, sort_keys=True, indent=4)
|
||||
return json.dumps(result2, sort_keys=True, indent=4, ensure_ascii=False)
|
||||
else:
|
||||
return json.dumps(result2, sort_keys=True)
|
||||
return json.dumps(result2, sort_keys=True, ensure_ascii=False)
|
||||
|
||||
def write_tree_file(tree, hostname, buf):
|
||||
''' write something into treedir/hostname '''
|
||||
|
|
Loading…
Reference in a new issue