unicode string search via API

Avatar image for comictagger
comictagger

39

Forum Posts

8

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

#1  Edited By comictagger

I guess no actual developer from Comic Vine is reading this forum, but maybe someone else out there has some experience with this:

How can I search with unicode string? For example, to search for "El Capitán Trueno"

(http://www.comicvine.com/el-capitan-trueno-torneo-fatidico/37-276328/)

In my python code, I first conver to UTF-8 and then use urllib.quote_plus() to get this search URL:

"http://api.comicvine.com/search/?api_key=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx&format=json&resources=volume&query=capit%C3%A1n+trueno&field_list=name,id,start_year,publisher"

but this yields empty search results. What's the right way to encode this string for the API?