[OSM-dev] Non-ASCII characters in XML generated from PostGIS

Peter Körner osm-lists at mazdermind.de
Fri May 18 12:14:45 BST 2012


Am 18.05.2012 09:48, schrieb Andy Allan:
> I don't understand why you're trying to force the UTF-8 characters
> into an ISO-8859-1 encoding - which has barely enough code points to
> cover Western European languages, never mind Greek, Russian or any
> other OSM data. Stick to UTF-8 encoding in your XML, and you should be
> fine. Provided, of course, you can persuade PHP that's it's an XML
> rather than an HTML document, to sort out the entity encoding as I
> explained above.
Don't use htmlentities, better use htmlspecialchars and set the charset 
of your XML to UTF-8.

Peter



More information about the dev mailing list