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?
You shouldn't have to do anything special since the API uses UTF-8 encoding. Just make sure you pass the query as unicode.
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'; PHP: 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.
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.)