Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #11428

Re: Xml Loading special Characters

Date 2013-10-14 20:07 +0200
From Luuk <luuk@invalid.lan>
Newsgroups comp.lang.php
Subject Re: Xml Loading special Characters
References <c32d269e-846c-4883-acd2-216d88bb1917@googlegroups.com>
Message-ID <cgotia-325.ln1@luuk.invalid.lan> (permalink)

Show all headers | View raw


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

Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Xml Loading special Characters Frank Catry <frank.catry@gmail.com> - 2013-10-14 09:44 -0700
  Re: Xml Loading special Characters Luuk <luuk@invalid.lan> - 2013-10-14 20:07 +0200
  Re: Xml Loading special Characters "Peter H. Coffin" <hellsop@ninehells.com> - 2013-10-14 13:29 -0500
    Re: Xml Loading special Characters Frank Catry <frank.catry@gmail.com> - 2013-10-15 01:55 -0700
      Re: Xml Loading special Characters Scott Johnson <noonehome@chalupasworld.com> - 2013-10-15 05:28 -0700
      Re: Xml Loading special Characters Jerry Stuckle <jstucklex@attglobal.net> - 2013-10-15 08:44 -0400
      Re: Xml Loading special Characters "Peter H. Coffin" <hellsop@ninehells.com> - 2013-10-15 09:57 -0500
        Re: Xml Loading special Characters Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-10-15 19:31 +0200
  Re: Xml Loading special Characters Frank Catry <frank.catry@gmail.com> - 2013-10-15 01:50 -0700
  Re: Xml Loading special Characters Frank Catry <frank.catry@gmail.com> - 2013-10-15 08:45 -0700
    Re: Xml Loading special Characters Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-10-15 19:32 +0200
  Re: Xml Loading special Characters Moon Elf <moonelf@moonelfsystem.net> - 2013-12-16 09:36 +0000
    Re: Xml Loading special Characters Jerry Stuckle <jstucklex@attglobal.net> - 2013-12-16 07:34 -0500

csiph-web