[OSM-dev] OSM places with strange characters - 2600
osm at randomjunk.co.uk
Thu Nov 2 14:11:10 GMT 2006
The PHP function is working correctly.
The database value seems screwed though. From what you've got there it
appears the text has been mangled into latin-1 by accident (ü -> Ã¼) and
then carefully returned as a UTF-8 string (Ã¼ mangled into latin-1 is ÃƒÂ¼).
> If I convert OSM placenames from UTF-8 to HTML, I get things like
> which looks wrong to me. It was stored in the database as:
> I'm using the PHP function:
> htmlentities($Name, ENT_COMPAT, "UTF-8")
> Any ideas?
> dev mailing list
> dev at openstreetmap.org
More information about the dev