Path: csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Date: Mon, 14 Oct 2013 20:07:42 +0200 From: Luuk User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.0.1 MIME-Version: 1.0 Newsgroups: comp.lang.php Subject: Re: Xml Loading special Characters References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Message-ID: Lines: 21 NNTP-Posting-Host: 2001:980:9089:1:cf3:4bd3:5190:b4f6 X-Trace: 1381774201 news.xs4all.nl 15921 [2001:980:9089:1:cf3:4bd3:5190:b4f6]:56805 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.php:11428 On 14-10-2013 18:44, Frank Catry wrote: > http://services.mobile.de/1.0.0/refdata/sites/GERMANY/classes/AgriculturalVehicle/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