Re: XML Encoding - with examples

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Jul 29, 2008 at 4:20 PM, Andrew Ballard <aballard@xxxxxxxxx> wrote:

> On Tue, Jul 29, 2008 at 2:33 PM, Thiago H. Pojda <thiago.pojda@xxxxxxxxx>
> wrote:
> <babling and code>
> > --
> > Thiago Henrique Pojda
> >
>
> Are you sure the accented characters you are using are part of
> ISO-8859-1 and not UTF-8? I don't have your data set, but I ran your
> code with a list of country names some of which include accented
> characters. It worked fine if I set the XML document encoding to
> UTF-8. (It even worked fine if I used the iconv line you have
> commented out, but I'm any XML reader that tries to use the ISO-8859-1
> encoding to read the file will spit out the first character that
> doesn't belong to the set.)
>

Try this word: descrição (description, in Portuguese). I couldn't get it to
show correctly in Firefox and other browsers, even after sending the proper
header.


>
> Is there any reason in particular that you MUST use ISO-8859-1 rather
> than UTF-8? The former is a subset of the latter, so I would think
> you'd save yourself the headache if you just used UTF-8 for
> everything.
>
I need to see accented characters, I don't mind how it's going to work atm.
I know UTF-8 is better, but ISO seem to suit my needs better.


>
> Andrew
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
Thank you for your time,
-- 
Thiago Henrique Pojda

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux