Hi,
i have a problem using the url-parameter in the API.
I want to send an german address (via googlemaps) to my device. For that I am using the url parameter. Unfortunally everytime I send an address (e.g. "maps.google.de/?q=Turmstraße 1, Köln") i get an error and Prowl says that the url is NULL. I already recognized that the url only becomes NULL if there is a letter like Ü,Ö,Ä,ß or a Space. I have tried things like UTF8Encoding but that doesnt work either.
Is there anyone who can help?
URL Parameter
Re: URL Parameter
I believe you'll need to url encode the attributes in your URL string which are causing the problem, e.g. this URL works: http://maps.google.de/?q=Turmstra%C3%9F ... 0K%C3%B6ln
I am weary about 'fixing' this problem because people typically pipe URLs directly into Prowl, and many are already encoded before being passed in. Double-encoding them would cause problems.
I am weary about 'fixing' this problem because people typically pipe URLs directly into Prowl, and many are already encoded before being passed in. Double-encoding them would cause problems.
Re: URL Parameter
Thanks for your answer.
I tried as you told me and replaced every ä,ö,ü,ß by the appropriate UTF8-code, but that does not work neither.
Then I tested the url you posted in your answer and even that won't work. I get the error "NULL".
This is a very important thing for me as i am using prowl for several dispatcher tasks.
I found another way by replacing ä by ae, ö by oe etc., however there are some interpretation errors at googles.
Do you have any idea?
PS: Merry Christmas at all!
I tried as you told me and replaced every ä,ö,ü,ß by the appropriate UTF8-code, but that does not work neither.
Then I tested the url you posted in your answer and even that won't work. I get the error "NULL".
This is a very important thing for me as i am using prowl for several dispatcher tasks.
I found another way by replacing ä by ae, ö by oe etc., however there are some interpretation errors at googles.
Do you have any idea?
PS: Merry Christmas at all!
Re: URL Parameter
Hi.
Are there any news on this topic?
I still have these problem and it is really annoying, concerning the interpretation errors of google's.
Are there meanwhile any other tips?
Are there any news on this topic?
I still have these problem and it is really annoying, concerning the interpretation errors of google's.
Are there meanwhile any other tips?
Re: URL Parameter
Can you share some example URLs which are failing? Feel free to email me (prowl-support@googlegroups.com) if they are sensitive.
Re: URL Parameter
I have my "basic" URL: "http://maps.google.com/?q="
Now I add the address I want to attach, e.g "Turmstraße 1, Köln", so the entire URL is "http://maps.google.com/?q=Turmstraße 1, Köln". With that URL Prowl says it is NULL.
I also tried manuell UTF-8-Encoding and used an URL like: "http://maps.google.com/?q=Turmstra%DFe%201%2C%20K%F6ln" but it's the same problem here.
I suppose that in this case Prowl decodes the string, gets chars like ß and ö and sets the URL to NULL.
When I tried to write the URL like "http://maps.google.com/?q=Turmstrasse1,Koeln", Prowl accepts that URL, but now Google Maps has some problems finding the right adress, especially the house number. (Not in this address, but there are others)
Now I add the address I want to attach, e.g "Turmstraße 1, Köln", so the entire URL is "http://maps.google.com/?q=Turmstraße 1, Köln". With that URL Prowl says it is NULL.
I also tried manuell UTF-8-Encoding and used an URL like: "http://maps.google.com/?q=Turmstra%DFe%201%2C%20K%F6ln" but it's the same problem here.
I suppose that in this case Prowl decodes the string, gets chars like ß and ö and sets the URL to NULL.
When I tried to write the URL like "http://maps.google.com/?q=Turmstrasse1,Koeln", Prowl accepts that URL, but now Google Maps has some problems finding the right adress, especially the house number. (Not in this address, but there are others)