Author Topic: Importing stuff like Dìvíñésñòw?  (Read 380 times)

0 Members and 1 Guest are viewing this topic.

Offline AndieukTopic starter

  • Irregular
  • Posts: 3
    • View Profile
Importing stuff like Dìvíñésñòw?
« on: July 02, 2009, 07:59:50 PM »
Hi there,  I'm have some problems with those damn extended character. In my data to be imported XML <name>Dìvíñésñòw</name> looks like this but when the <name> tag is imported using simpleXML it turns in to this Dìvà ñésñòw, I'm guessing some form of conversion is needed the XML imports fine I just have this problem I would like the original data to be in my DB as is Dìvíñésñòw.

Offline haku

  • Guru
  • Freak!
  • *
  • Posts: 5,707
  • Old Man
    • View Profile
Re: Importing stuff like Dìvíñésñòw?
« Reply #1 on: July 05, 2009, 07:17:19 AM »
I believe that XML only supports UTF-8 charsets. This means that either everything else has to be utf-8 as well, or you have to change the encoding somewhere along the way.

You didn't really say exactly what you were doing with the xml data - is it just going directly into the database? Are you outputting it into a page first? Are you doing anything with it?