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]
|