Welcome Guest, Not a member yet? Register   Sign In
? Characters displayed instead of French Accents when using
#1

[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!
#2

[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!
#3

[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
#4

[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!
#5

[eluser]Ckirk[/eluser]
make them all UTF-8. It could save you a major headache later on
#6

[eluser]warpspasm[/eluser]
On it! Thanks Chris
#7

[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?
#8

[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




Theme © iAndrew 2016 - Forum software by © MyBB