You are here: Re: charsert question « PHP Programming Language « IT news, forums, messages
Re: charsert question

Posted by julian_m on 03/29/06 20:39

J2be ha escrito:

> "julian_m" <julianmaisano@gmail.com> wrote in message
> news:1143622326.766053.310820@z34g2000cwc.googlegroups.com...
> >I've a problem related charset (I think)
> >I think that my problem is related to these two lines:
> >
> >header('Content-Type: text/xml');
> >print '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>';
> >Can anyone give me a hint?
> >
> >Note that the table is defined as
> >"ENGINE=MyISAM DEFAULT CHARSET=latin1;"
>
> You've to convert the string from the charset latin1 to UTF-8
> if you want to send data as UTF-8
> because by sending
>
> header('Content-Type: text/xml');
> print '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>';
>
> you just tell to the browser that the strings are UTF-8 while they are not.

Ok, but,
Wouldn't be possible to send directly to the browser latin1charset?
(just to not to do such a conversions)

I mean
header('Content-Type: text/xml');
print '<?xml version="1.0" encoding="LATIN-1" standalone="yes"?>';

Is it valid xml file?

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация