FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Xml Loading special Characters
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Xml Loading special Characters [message #183244 is a reply to message #183243] Mon, 14 October 2013 18:07 Go to previous messageGo to previous message
Luuk is currently offline  Luuk
Messages: 329
Registered: September 2010
Karma:
Senior Member
On 14-10-2013 18:44, Frank Catry wrote:
> http://services.mobile.de/1.0.0/refdata/sites/GERMANY/classes/AgriculturalV ehicle/makes
>
> In the textContext of this XML i find some special characters like ë en ö.
> Example : 'Düvelsdor'
>
> However 'Düvelsdor' results in Dücker' when loading the XML a new DOMDocument()
>
> Do anybody knows a solution for this problem ?
> Frank.
>


The characters in an XML are (if not specified )UTF-8 encoded.

You could use a function like utf_decode to convert this to another
encoding, or you should be aware of this UTF8-encoding and handle them
correctly...

http://www.php.net/manual/en/function.utf8-decode.php
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Zip Codes ctype? Pregmatch?
Next Topic: How to code () inside quotes
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Nov 10 11:15:35 GMT 2024

Total time taken to generate the page: 0.04449 seconds