Hi, I use the charset UTF8 general ci in my database to deal with French accents. I did an export in xls by using:
action: [...] $this->setLayout(false); $this->getResponse()->setHttpHeader('Content-Disposition', 'inline; filename="xxx.xls"'); $this->getResponse()->setContentType('application/msexcel\; charset=ISO-8859-1'); template: <table> [...] <?= utf8_decode( $h->getPrenom() ) ?> </table> That works fine, but I want to use UTF-8 directly. I first tried to set the charset to UTF-8 and to remove utf8_decode(). In that case, accents are not correct in the xls; I don't get why. I even tried to use utf8_encode() even though encoding utf8 into utf8 doesn't make any sense ^^). It has nothing to do with Symfony, but why are there so many different charsets? One with everything from latin to chinese would be great ! TIA, François --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~----------~----~----~----~------~----~------~--~---