Thread: xml + sql
View Single Post
  #8  
Old 05-10-2009, 09:47 AM
Arabica Offline
forum loafer
 
Join Date: Jan 2006
Location: Berlin, Germany
Posts: 17
The XML-file works like a charm, just the special characters are driving me nuts.

For example:
I have an image-title called "Buschwindröschen" the character ö is stored correct in the database and also displayed correct in the html-template. (see here).
BUT when the xml is written via PHP with the command
PHP Code:
htmlspecialchars(utf8_encode($row2['headline'])) 
the result is "Buschwindröschen" (as you can see here).

So how can I fetch or write the data correct, so the XML is well formed in UTF-8??

thanks
frank
__________________
°bruehgruppe
Reply With Quote