fix handling of special Unicode characters
This commit is contained in:
parent
c6eda91546
commit
a5efcd36b1
1 changed files with 3 additions and 2 deletions
|
@ -40,8 +40,9 @@ def build_urls(fields):
|
|||
fields."""
|
||||
data = {}
|
||||
errors = {}
|
||||
qfields = dict([(key, quote_plus(fields[key])) for key in fields])
|
||||
fpr = keyfinder.getFingerprintByEmail(str(fields['email']))
|
||||
qfields = dict([(key, quote_plus(fields[key].encode('utf8'))) \
|
||||
for key in fields])
|
||||
fpr = keyfinder.getFingerprintByEmail(fields['email'].encode('utf8'))
|
||||
if fpr:
|
||||
qfields['gpgfp'] = fpr[0]
|
||||
for section in my_config.sections():
|
||||
|
|
Loading…
Reference in a new issue