Re: Get € past a XML parser
From: Rutger Claes (news_at_rgc.be)
Date: 01/08/05
- Next message: kicken: "Re: php 4.3.10 and macosx"
- Previous message: kicken: "Re: first even php code"
- In reply to: Manuel Lemos: "Re: Get € past a XML parser"
- Next in thread: Rutger Claes: "Re: Get € past a XML parser"
- Reply: Rutger Claes: "Re: Get € past a XML parser"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sat, 08 Jan 2005 10:50:29 +0100
Manuel Lemos wrote:
> Hello,
>
> on 01/07/2005 11:05 AM Rutger Claes said the following:
>> I'm having troubles getting the euro sign through an XML parser.
>>
>> With the following test code:
>> <?php
>> $string = "<root><test>€</test></root>";
>
> You need to explicitly declare that the output encoding is UTF-8 because
> ISO-8859-1 only comprises 8 bit latin characters. Iso-8859-15 would be
> the correct encoding but I don't think Expat supports any encoding
> besides UTF-8 or ISO-8859-1.
>
You're right. When I enforce UTF-8 on my xml from the time it get's out of
the DOM Object through the SAX parser and Tidy I get some wrong symbols:
â,¬. But when I tell my browser (Konqueror) to use charset UTF-8, it works.
The problem now is that even though I have a
<meta .... content-type: text/hml; charset=UTF-8" /> and a headers( '...
charset=UTF-8' ) the browser still doesn't pick it up when it is set to
auto charset. I've tried mozilla firefox too, same result.
So now I have a working charset, but nobody will see it. Is there a way to
fix this?
Thanks for the answer,
Rutger Claes
-- Rutger Claes rgc@rgc.tld Replace tld with top level domain of belgium to contact me pgp:0x3B7D6BD6 Do not reply to the from address. It's read by /dev/null and sa-learn only
- Next message: kicken: "Re: php 4.3.10 and macosx"
- Previous message: kicken: "Re: first even php code"
- In reply to: Manuel Lemos: "Re: Get € past a XML parser"
- Next in thread: Rutger Claes: "Re: Get € past a XML parser"
- Reply: Rutger Claes: "Re: Get € past a XML parser"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|