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


Groups > comp.lang.php > #11427 > unrolled thread

Xml Loading special Characters

Started byFrank Catry <frank.catry@gmail.com>
First post2013-10-14 09:44 -0700
Last post2013-12-16 07:34 -0500
Articles 13 — 7 participants

Back to article view | Back to comp.lang.php


Contents

  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

#11427 — Xml Loading special Characters

FromFrank Catry <frank.catry@gmail.com>
Date2013-10-14 09:44 -0700
SubjectXml Loading special Characters
Message-ID<c32d269e-846c-4883-acd2-216d88bb1917@googlegroups.com>
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.

[toc] | [next] | [standalone]


#11428

FromLuuk <luuk@invalid.lan>
Date2013-10-14 20:07 +0200
Message-ID<cgotia-325.ln1@luuk.invalid.lan>
In reply to#11427
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

[toc] | [prev] | [next] | [standalone]


#11429

From"Peter H. Coffin" <hellsop@ninehells.com>
Date2013-10-14 13:29 -0500
Message-ID<slrnl5odvk.nbc.hellsop@nibelheim.ninehells.com>
In reply to#11427
On Mon, 14 Oct 2013 09:44:09 -0700 (PDT), 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 ? 

I see you attempting to write this message in UTF-8 and your message
headers indicate that the text is supposed to be ISO 8859-1. If you
know what those are, then you should immediately understand what the
problem you are having is. If you don't know what those are, then
learning those things will show you the solution to your problem.

-- 
5. The artifact which is the source of my power will not be kept on the 
   Mountain of Despair beyond the River of Fire guarded by the Dragons
   of Eternity. It will be in my safe-deposit box. The same applies to 
   the object which is my one weakness.  --Peter Anspach "Evil Overlord"

[toc] | [prev] | [next] | [standalone]


#11432

FromFrank Catry <frank.catry@gmail.com>
Date2013-10-15 01:55 -0700
Message-ID<2d5ed487-e852-4489-8d4e-1d9cc8e9c0e7@googlegroups.com>
In reply to#11429
To Peter H. Coffin; your contribution to this forum is not valuable. Please offers sulotions, don't act like a wiseacre. Frank.

[toc] | [prev] | [next] | [standalone]


#11433

FromScott Johnson <noonehome@chalupasworld.com>
Date2013-10-15 05:28 -0700
Message-ID<l3jcde$sg7$1@dont-email.me>
In reply to#11432
On 10/15/2013 1:55 AM, Frank Catry wrote:
> To Peter H. Coffin; your contribution to this forum is not valuable. Please offers sulotions, don't act like a wiseacre. Frank.
>

+1

[toc] | [prev] | [next] | [standalone]


#11434

FromJerry Stuckle <jstucklex@attglobal.net>
Date2013-10-15 08:44 -0400
Message-ID<l3jdas$2r4$1@dont-email.me>
In reply to#11432
On 10/15/2013 4:55 AM, Frank Catry wrote:
> To Peter H. Coffin; your contribution to this forum is not valuable. Please offers sulotions, don't act like a wiseacre. Frank.
>

Your response is completely off-target.  Rather than just give you the 
answer, Peter attempted to help you learn what your problem is.  That 
way the next time you have a similar problem, you have a better chance 
of figuring things out for yourself.

But you obviously can not be bothered with spending some effort to learn 
your job; you just want others to give you answers for free.

Unfortunately, you are not alone.

-- 
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

[toc] | [prev] | [next] | [standalone]


#11435

From"Peter H. Coffin" <hellsop@ninehells.com>
Date2013-10-15 09:57 -0500
Message-ID<slrnl5qlv7.nbc.hellsop@nibelheim.ninehells.com>
In reply to#11432
On Tue, 15 Oct 2013 01:55:23 -0700 (PDT), Frank Catry wrote:

> To Peter H. Coffin; your contribution to this forum is not valuable.
> Please offers sulotions, don't act like a wiseacre. Frank.

*shrug* Solutions don't fix the next problem. They only fix this
problem, and leave you sitting there, never knowing what part of the
"solution" actually made the difference. That's not helpful, to anyone,
long term. The simple fact is that you're going to need to understand
character sets and encodings sometime, they're 100% central to the
problem you're grappling with. It's time to put on real trousers and
tackle the whole concept because it won't take THAT much longer than 
just trying to apply someone else's "solution".

-- 
"25 grams of wafers and 20 ml of wine undergo transubstantiation and
 become the flesh and blood of our Lord. How many Joules of heat are
 released by the transformation?"   --Theological Physics exam, 1997

[toc] | [prev] | [next] | [standalone]


#11437

FromThomas 'PointedEars' Lahn <PointedEars@web.de>
Date2013-10-15 19:31 +0200
Message-ID<1624573.rZGCUPpBqV@PointedEars.de>
In reply to#11435
Peter H. Coffin wrote:

> On Tue, 15 Oct 2013 01:55:23 -0700 (PDT), Frank Catry wrote:
>> To Peter H. Coffin; your contribution to this forum is not valuable.
>> Please offers sulotions, don't act like a wiseacre. Frank.
> 
> *shrug* Solutions don't fix the next problem. They only fix this
> problem, and leave you sitting there, never knowing what part of the
> "solution" actually made the difference. That's not helpful, to anyone,
> long term. The simple fact is that you're going to need to understand
> character sets and encodings sometime, they're 100% central to the
> problem you're grappling with. It's time to put on real trousers and
> tackle the whole concept because it won't take THAT much longer than
> just trying to apply someone else's "solution".

+1


PointedEars
-- 
Anyone who slaps a 'this page is best viewed with Browser X' label on
a Web page appears to be yearning for the bad old days, before the Web,
when you had very little chance of reading a document written on another
computer, another word processor, or another network. -- Tim Berners-Lee

[toc] | [prev] | [next] | [standalone]


#11431

FromFrank Catry <frank.catry@gmail.com>
Date2013-10-15 01:50 -0700
Message-ID<a107093e-66b0-4bec-bc1d-b7adfdf6690f@googlegroups.com>
In reply to#11427
Thanks Luuk, thats the function i needed. It works fine now. Frank.

[toc] | [prev] | [next] | [standalone]


#11436

FromFrank Catry <frank.catry@gmail.com>
Date2013-10-15 08:45 -0700
Message-ID<2c866308-9aed-439b-be5d-0ebc4ca06c1d@googlegroups.com>
In reply to#11427
I knew the problem and spend a lot of time testing different PHP functions to solve the conversion. Thats all. I just needed a hint and that exactly what Luud did. I don't have to learn PHP because this is isolated job.

For free ? I already have helped dozens of people for free with a turnkey solution. I don't have a problem with free. F.

[toc] | [prev] | [next] | [standalone]


#11438

FromThomas 'PointedEars' Lahn <PointedEars@web.de>
Date2013-10-15 19:32 +0200
Message-ID<2392089.ll8ACPqpHc@PointedEars.de>
In reply to#11436
Frank Catry wrote:

> I knew the problem and spend a lot of time testing different PHP functions
> to solve the conversion. Thats all. I just needed a hint and that exactly
> what Luud did. I don't have to learn PHP because this is isolated job.

<http://www.catb.org/~esr/faqs/smart-questions.html>
 
> For free ? I already have helped dozens of people for free with a turnkey
> solution. I don't have a problem with free. F.

Please go away.  TIA.


PointedEars
-- 
Anyone who slaps a 'this page is best viewed with Browser X' label on
a Web page appears to be yearning for the bad old days, before the Web,
when you had very little chance of reading a document written on another
computer, another word processor, or another network. -- Tim Berners-Lee

[toc] | [prev] | [next] | [standalone]


#12285

FromMoon Elf <moonelf@moonelfsystem.net>
Date2013-12-16 09:36 +0000
Message-ID<slrnlatiat.dlu.moonelf@sigtrans.org>
In reply to#11427
On 2013-10-14, Frank Catry <frank.catry@gmail.com> 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.

FYI, html pages can display UTF-XX but the browser needs to support it.

ME

-- 
Member of the DR rogue circle. 
Search and you will find. 

[toc] | [prev] | [next] | [standalone]


#12290

FromJerry Stuckle <jstucklex@attglobal.net>
Date2013-12-16 07:34 -0500
Message-ID<l8ms0d$sc7$1@dont-email.me>
In reply to#12285
On 12/16/2013 4:36 AM, Moon Elf wrote:
> On 2013-10-14, Frank Catry <frank.catry@gmail.com> 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.
>
> FYI, html pages can display UTF-XX but the browser needs to support it.
>
> ME
>

Sure it can.  But that has nothing to do with PHP.


-- 
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.php


csiph-web