<font face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size="2"><font face="Default Monospace,Courier New,Courier,monospace" size="2">>There's a few issues here that are colliding.<br><br>>First of all, you're returning HTML entities in an XML document.<br>>That's going to throw an error. In your example, you have &Atilde; ,<br>>which isn't defined for XML, only for HTML.<br><br><a target="_blank" href="http://en.wikipedia.org/wiki/List_of_XML_and_HTML_character_entity_references">>http://en.wikipedia.org/wiki/List_of_XML_and_HTML_character_entity_references</a><br><br>>Secondly, you're getting your character encodings in a muddle. The<br>>database is storing your e-acute in UTF8. It's unicode character<br>>U+0039, and represented in the UTF-8 encoding as two bytes (C3 and<br>>E9).<br><br><a target="_blank" href="http://www.fileformat.info/info/unicode/char/e9/index.htm">>http://www.fileformat.info/info/unicode/char/e9/index.htm</a> <- look at<br>>the UTF-8 (hex) section<br><br>>I don't understand why you're trying to force the UTF-8 characters<br>>into an ISO-8859-1 encoding - which has barely enough code points to<br>>cover Western European languages, never mind Greek, Russian or any<br>>other OSM data. Stick to UTF-8 encoding in your XML, and you should be<br>>fine. Provided, of course, you can persuade PHP that's it's an XML<br>>rather than an HTML document, to sort out the entity encoding as I<br>>explained above.</font><br><br>Hello Andy,<br><br>OK thanks for that. That's the problem with speaking English as a first language and only working with a UK subset of OSM data... you can go for years and years developing software before hitting these issues! <br><br>Nick<br><font color="#990099"></font><br></font>