[OSM-dev] OSM places with strange characters - 2600

Dave 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 ü).

Dave

OJW wrote:
> If I convert OSM placenames from UTF-8 to HTML, I get things like
>
> München-Waldtrudering
>
> which looks wrong to me.  It was stored in the database as:
>
> München-Waldtrudering
>
> I'm using the PHP function:
>
> htmlentities($Name, ENT_COMPAT, "UTF-8")
>
> Any ideas?
>
> OJW
>
>
> _______________________________________________
> dev mailing list
> dev at openstreetmap.org
> http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/dev
>   




More information about the dev mailing list