propublica / sunlight-congress

The Sunlight Foundation's Congress API. Shut down on Oct. 1, 2017.
https://www.propublica.org/nerds/item/congress-api-bill-subjects-personal-explanations-and-sunsetting-sunlight
Other
169 stars 65 forks source link

Unicode issues? #386

Closed konklone closed 11 years ago

konklone commented 11 years ago

Are we properly converting to Unicode?

When requesting a legislator with an accented name, both JSONView and downstream users see an encoding issue:

http://congress.api.sunlightfoundation.com/legislators?first_name=%22Nydia%22&apikey=XXXX

Also, visiting that URL and opening the developer console and peeking at the request text shows the same thing. However, inspecting the response via curl in my terminal, and when saved to disk and opened in Sublime Text, both show the proper accent.

konklone commented 11 years ago

Fixed in a5c2a1792bd.