I need to replace all special control character in a string in Java.
I want to ask the Google maps API v3, and Google doesn't seems to like these characters.
Example: http://www.google.com/maps/api/geocode/json?sensor=false&address=NEW%20YORK%C2%8F
This URL contains this character: http://www.fileformat.info/info/unicode/char/008f/index.htm
So I receive some data, and I need to geocode this data. I know some character would not pass the geocoding, but I don't know the exact list.
I was not able to find any documentation about this issue, so I think the list of characters that Google doesn't like is this one: http://www.fileformat.info/info/unicode/category/Cc/list.htm
Is there any already built function to get rid of these characters, or do I have to build a new one, with a replace one by one?
Or is there a good regexp to do the job done?
And does somebody know which exact list of characters Google doesn't like?
Edit : Google have create a webpage for this :
https://developers.google.com/maps/documentation/webservices/?hl=fr#BuildingURLs