latin1 to utf8 question

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

 



Hi.
My CMS' mysql db collation is in latin1. I have a news module, that
has an optional RSS2.0 file. Partial example of rss.php:

header('Content-type: application/xml; charset="UTF-8"',true);
echo '<?xml version="1.0" encoding="UTF-8"?>';
echo "\n";
echo '<rss version="2.0">';
echo "\n";
echo '<channel>';
echo "\n";
echo '<title>'.get_option('title').'</title>';
echo "\n";
echo '<link>'.URL.'</link>';
echo "\n";
echo '<description>'.get_option('description').'</description>';
...

The problem is that some data in "description" contains some of this
characters: áéíóú, and they all get converted to a '?'.

How can I avoid this problem and still show the appropiate character
in the rss output?

Thanks,
Andres


-- 
Slds,
Andrés Santos, IIG

*****************************
cel: (593) 9 7026627
http://www.egobits.com
*****************************


------------------------ Yahoo! Groups Sponsor --------------------~--> 
Get to your groups with one click. Know instantly when new email arrives
http://us.click.yahoo.com/.7bhrC/MGxNAA/yQLSAA/saFolB/TM
--------------------------------------------------------------------~-> 

PHP Data object relational mapping generator
http://www.metastorage.net/ 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/php-objects/

<*> To unsubscribe from this group, send an email to:
    php-objects-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 




[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Soap]     [Kernel Newbies]     [Yosemite]     [Yosemite Campsites]

  Powered by Linux