Andieuk Posted July 2, 2009 Share Posted July 2, 2009 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. Link to comment https://forums.phpfreaks.com/topic/164596-importing-stuff-like-d%C3%ACv%C3%AD%C3%B1%C3%A9s%C3%B1%C3%B2w/ Share on other sites More sharing options...
haku Posted July 5, 2009 Share Posted July 5, 2009 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? Link to comment https://forums.phpfreaks.com/topic/164596-importing-stuff-like-d%C3%ACv%C3%AD%C3%B1%C3%A9s%C3%B1%C3%B2w/#findComment-869127 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.