View Full Version : How to use the Api with special characters like ä, ö and ü?
Jojo
Oct 2nd 2004, 7:23 pm
Hello,
I am programming an German Tool to use the Google API. I use NuSoap.
Now I have problems with special characters, like the German letters ä, ö and ü.
At the moment I haven´t any idea how to use them on a query in the right way. Looks like Google or NuSoap is ignoring them?
Any idea where the mistake could be?
digitalpoint
Oct 2nd 2004, 9:18 pm
You shouldn't have to do anything special since the API uses UTF-8 encoding. Just make sure you pass the query as unicode.
Jojo
Oct 3rd 2004, 2:45 am
Looks like I found the problem. I change this two lines and use now ISO-8859-1 instead of UTF-8.
// var $soap_defencoding = 'UTF-8';
var $soap_defencoding = 'ISO-8859-1';
Looks like I need to programm an own Soap-Client. NuSoap seems not the best way to use the Google-API.
Looks like I found the problem. I change this two lines and use now ISO-8859-1 instead of UTF-8.
// var $soap_defencoding = 'UTF-8';
var $soap_defencoding = ' ISO-8859-1 ';
Looks like I need to programm an own Soap-Client. NuSoap seems not the best way to use the Google-API.
Good finding. I am using direct none API
http://www.google.com/search?ie=ISO-8859-1&q=sina
http://www.google.com/search?ie=UTF-8&q=sina
do not look much different.
digitalpoint
Oct 6th 2004, 7:58 pm
None of the soap clients are very good actually. I ended up writing my own for the things I need it for (search engine script, keyword tracker, etc.)
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.