mirror of
https://github.com/webrecorder/pywb.git
synced 2025-03-15 00:03:28 +01:00
encoding: encode before quote
setup: enable zip_safe=True again
This commit is contained in:
parent
ab8b4efaec
commit
e8c77c0538
@ -127,7 +127,7 @@ class CDXObject(OrderedDict):
|
||||
try:
|
||||
v.encode('ascii')
|
||||
except UnicodeEncodeError:
|
||||
v = quote(v, safe=':/')
|
||||
v = quote(v.encode('utf-8'), safe=':/')
|
||||
|
||||
self[n] = v
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user