Encoding issue with JSON dumps

This commit is contained in:
Alexandre Dulaunoy 2014-12-30 21:21:45 +01:00
parent 47996ec87a
commit 0a81ef6467

View file

@ -73,4 +73,4 @@ for crl in os.listdir(args.d):
for revoked in crlp.get_revoked():
o['revoked'].append({'serial':revoked.get_serial(), 'rev_date':revoked.get_rev_date(), 'reason':revoked.get_reason()})
if args.j:
print json.dumps(o)
print json.dumps(o, ensure_ascii=False)