From fec97243ba2a54e1c71b60022154bb37d2cfac8e Mon Sep 17 00:00:00 2001 From: rakslice Date: Sun, 2 Jun 2019 13:46:00 -0700 Subject: [PATCH] Fix unicode encode error --- wrp.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wrp.py b/wrp.py index 0861d71..ac3f061 100755 --- a/wrp.py +++ b/wrp.py @@ -284,10 +284,10 @@ if sys.platform.startswith('linux') or sys.platform.startswith('freebsd'): if ISMAP == True: mapfile.write("rect %s %i,%i %i,%i\n".decode('utf-8', errors='ignore') % (turl, xmin, ymin, xmax, ymax)) else: - httpout.write("\"%s\"\n".decode('utf-8', errors='ignore') - % (xmin, ymin, xmax, ymax, turl, turl)) + % (xmin, ymin, xmax, ymax, turl, turl)).encode("utf-8")) if ISMAP != True: httpout.write("\n")