From 0a81ef64672314fc8efdc608d0db87efa4eac84f Mon Sep 17 00:00:00 2001 From: Alexandre Dulaunoy Date: Tue, 30 Dec 2014 21:21:45 +0100 Subject: [PATCH] Encoding issue with JSON dumps --- bin/analyzecrl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/analyzecrl.py b/bin/analyzecrl.py index 9c01964..6e1be2d 100644 --- a/bin/analyzecrl.py +++ b/bin/analyzecrl.py @@ -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)