fix handling of special Unicode characters

This commit is contained in:
Jan Dittberner 2009-01-21 21:54:15 +01:00
parent c6eda91546
commit a5efcd36b1

View file

@ -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():