[eluser]mikegioia[/eluser]
Hi guys -
I'm having the following problem. In my language file, I have the following line:
Code:
$lang['language_spanish'] = "Español";
And in my view I output the line like this:
Code:
echo $this->lang->line('language_spanish');
The problem is that the accented 'ñ' in 'Español' comes out an ugly 'Espa�ol'. I've tried passing it through htmlentities with the character encoding set to UTF-8 but I checked around and it seems all the language files created by other users here encode their foreign language files in Latin-1. Is there any way to do this?
I'll be having a Spanish translation soon and it'll more than likely be typed up in UTF-8 like the above example. How can I prevent against all of those question marks in the output without having to pass every $this->lang->line() statement through some output handler?
Thanks for any help,
Mike