okfn / dataproxy

Web application (targeted at appengine) to proxy data from certain data types into a JSON-P data type so that users can create mashups against remote data sets.
http://jsonpdataproxy.appspot.com/
Other
75 stars 24 forks source link

Danish characters are not coming through #24

Closed cphsolutionslab closed 10 years ago

cphsolutionslab commented 11 years ago

International characters, such as the Danish æøå, is not coming through. Example (you cannot see the problem as the letters aren't there): jsonpdataproxy.appspot.com/?type=csv&url=http://wfs-kbhkort.kk.dk%2Fk101%2Fows%3Fservice%3DWFS%26version%3D1.0.0%26request%3DGetFeature%26typeName%3Dk101%3Atoilet%26outputFormat%3Dcsv%26SRSNAME%3DEPSG%3A4326

rossjones commented 11 years ago

I don't think the data served from that url is utf-8, it looks more like latin1/iso-8859-1.

If you add &encoding=latin1 to the end of the URL, it decodes correctly. I think part of the problem is that when it checks the content-type of that url, it doesn't say what the charset is, and as a result it isn't correctly guessing.

cphsolutionslab commented 11 years ago

I see, that did the job. Thank you ☺

Fra: Ross Jones [mailto:notifications@github.com] Sendt: 8. oktober 2013 15:10 Til: okfn/dataproxy Cc: Henrik Aagaard Sørensen Emne: Re: [dataproxy] Danish characters are not coming through (#24)

I don't think the data served from that url is utf-8, it looks more like latin1/iso-8859-1.

If you add &encoding=latin1 to the end of the URL, it decodes correctly. I think part of the problem is that when it checks the content-type of that url, it doesn't say what the charset is, and as a result it isn't correctly guessing.

— Reply to this email directly or view it on GitHubhttps://github.com/okfn/dataproxy/issues/24#issuecomment-25887911.