ZnUrl, Encoding

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

ZnUrl, Encoding

Dennis Schenk
Hi all,

I stumpled upon a problem with encoding of URLs in Pharo. 

I am using the Google Geocoding API. For example I want to get the result of: http://maps.googleapis.com/maps/api/geocode/json?address=Willemstad,+Curaçao&sensor=false&language=en

When one enters this in a Browser a correct JSON response is returned.

If I do the following: 


I get an error back grom Google.

When digging through the code I found that in ZnHTTPSocketFacade the following happens:


And the result of this is:


Which Google does not know how to handle and then returns an error.

Does anyone have an idea how I could get contents from a URL which has special chars like 'ç'?

Or is there a way to convert all special chars to to their 'normal' counterparts, like ç -> c?

Cheers,
Dennis



_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev