prayagverma / gdata-python-client

Automatically exported from code.google.com/p/gdata-python-client
1 stars 0 forks source link

DictionaryToParamList raises KeyEror when argument contains any non-Roman Unicode characters #643

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
If {{{atom.service.DictionaryToParamList()}}} function takes any non-Roman 
Unicode characters e.g. {{{u'\uac15'}}} it raises {{{KeyError}}.  It internally 
uses {{{urllib.quote_plus()}}} function and it doesn’t seem to support 
non-Roman Unicode characters.

IMHO it should encode argument value to UTF-8 byte string before passing it 
into {{{urllib.quote_plus()}}}.

Original issue reported on code.google.com by hong.min...@gmail.com on 19 Oct 2012 at 9:45