![]() |
? Characters displayed instead of French Accents when using - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: ? Characters displayed instead of French Accents when using (/showthread.php?tid=58962) |
? Characters displayed instead of French Accents when using - El Forum - 08-08-2013 [eluser]warpspasm[/eluser] Hi Everyone! I'm using the following in my view: echo $this->lang->line('french_word'); I have the following defined in my lang file: $lang['french_word'] = "Événements"; But the display I get on my Website is: �v�nements Any ideas what is going wrong? Here is my HTML header line: <meta http-equiv="Content-Type" c charset=UTF-8" /> By the way, if I check another French Website, everything is fine so it's not my browser. Thanks! ? Characters displayed instead of French Accents when using - El Forum - 08-08-2013 [eluser]warpspasm[/eluser] I just noticed that the text/html part of the HTML header didn't cut and paste across correctly, but don't worry, it is there in my actual META line! ? Characters displayed instead of French Accents when using - El Forum - 08-08-2013 [eluser]Ckirk[/eluser] Make sure that whatever editor you are using is saving your files as UTF-8. It's not enough to set the meta ? Characters displayed instead of French Accents when using - El Forum - 08-08-2013 [eluser]warpspasm[/eluser] That did the trick! Thank you. So I noticed that the files are type: Western European (Mac-Roman). Would it be better for me to change the format of all my CodeIgniter files to UTF-8? I'm using Komodo as an editor and it's a Debian Linux Server with Apache and MySQL. Or should I just keep the one file changed and keep the Western European (Mac-Roman) format for the rest. The main Website is in English, but I'm offering a French version now and maybe some other languages later. Thanks again! ? Characters displayed instead of French Accents when using - El Forum - 08-09-2013 [eluser]Ckirk[/eluser] make them all UTF-8. It could save you a major headache later on ? Characters displayed instead of French Accents when using - El Forum - 08-09-2013 [eluser]warpspasm[/eluser] On it! Thanks Chris ? Characters displayed instead of French Accents when using - El Forum - 08-09-2013 [eluser]warpspasm[/eluser] ...by the way, when is the encoding set? Do I download the files from CI already as type Western European (Mac-Roman) or does Komodo set that the first time I open them? ? Characters displayed instead of French Accents when using - El Forum - 08-09-2013 [eluser]Ckirk[/eluser] I'm not sure, to be honest. I don't use Komodo but I'd assume there are general editor settings somewhere that allow you to set the default for all |