Problem with UTF-8

Djscusa

New Member
I've converted the spanish lang file to utf-8 wihout BOM, but characters still appears wrong, for example "ó" appears as "Г".​
How can I fix that?​
Thanks.​
 

Basti

Administrator
Staff member
few things to troubleshoot.
1. You haavent set a charset in spanish.php right? if not good, else remove it.
2. Is the file itself saved as utf-8?
3. delete this in index.php ( most likely the issue, and will be removed from index.php again in 0.7 final
Code:
// Convert previously wrong encoded LNG vars
function icon_convert(&$item1, $key, $prefix)
{
    $item1 = iconv("cp1251", "UTF-8", $item1);
}
array_walk($LNG, 'icon_convert', $LNG);
We had that in for russian users, but it seems it causes issues for the rest.
 
Top