Topic: Charset problem with spanish
Hi!
I have a punbb installed with the spanish lang in my web: www.suburbiosrock.es (you can see there the problem )
The BD has the character set to UTF-8, and in all the pages the charset is set to UTF-8, and after every BD connection, do this SQL query: "SET CHARACTER SET 'utf8'", so all of my pages are shown perfectly and all the inserts too... all works perfectly except the forum (evidently, if doesn't, I wouldn't be writing this...).
1º Case (Generic, like is when installs the forum and the language):
- lang/Spanish/common.php => 'lang_encoding' => 'iso-8859-1',
Result:
- Literals (translation of the forum): "Regístrate" / "Administración" ¡PERFECT!
- Posts of the people: "p?gina" | "dise?o" ¡Wrong!
2º Case (Like in a post here says):
- lang/Spanish/common.php => 'lang_encoding' => 'utf-8',
- include/db_layer/common_db.php => $db->query("SET NAMES 'utf8'");
Result:
- Literals (translation of the forum): "Reg?strate" / "Administraci?n" ¡WRONG!
- Post of the people: "página" | "diseño" ¡PERFECT!
And sometimes (when edit the first post? creating new post in the 2º case? don't remember) give me "Error: Unable to insert search index words".
HELP!! I have a big headache with all of this... any idea? I'm lost...
Thanks,
best regards from Spain (so sorry about my english ),
Rodrigo