SMF Version: SMF 1.1 RC3
Hello !
I'm running SMF 1.1RC3 (using UTF8 and French pack, UTF8 version) without any problem, except this one... The accented characters in month names does not appears.
The french translation of "
December" should be "
Décembre" and it appears in the forum as "
Dcembre".
Same thing for "
August" which appears as "
Aot" instead of the correct translation "
Aôut"...
I checked some things :
- in the admin panel, the version of SMF is exactly the same version than my language files (1.1RC3)
- I found the translations of the month names only in index.french-utf8.php (in the variable $txt['months'] around the line 22) and I can see that "December" is translated as "Décembre" and "August" is translated as "Août". This seems to be correct...
- In the file index.french-utf8.php, line 16, I can see $txt['lang_character_set'] = 'ISO-8859-1';. This seems strange to me, but the problem remains when I change this for "UTF8" or "UTF-8"...
- Each page of my forum contains the following line in its header : <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />.
- the mysql database of SMF has been entirely converted to UTF8.
- the HTML entities has been converted to UTF8 characters using the admin panel.
I really don't know what could be the problem... Could you help me ?? It's really annoying...
Thank you very much in advance for your help ! :)
What browser are you using?
Have you tried other browsers and/or computers?
The problem happens with :
- FireFox 1.5.0.6, KDE 3.5.1, GNU/Linux
- Konqueror 3.5.1, KDE 3.5.1, GNU/Linux
- Internet Explorer 6, Windows XP
- Internet Explorer 6, under CrossOverOffice GNU/Linux
On other computers, the problem is the same... Thank you for your help ! :)
:'( Really ? This is a difficult question ?? Does anyone has a clue ? :'(
A link to your SMF would be appreciated.
Well. Here is a link, slightly coded to avoid bots :-)
www [dot] |e|n|s|e|m|b|l|e|-|i|n|t|e|r|m|e|z|z|o|.|b|e| [slash] |f|o|r|u|m|
(remove all pipes, spaces, replace [dot] by '.' and [slash] by '/').
You can see "Dcembre" and "Aot" in the following post : index.php/topic,9.0.html
Thank you very much !
Indeed, it looks like the characters are being stripped out, they aren't even showing in the page source. I'll do some more poking around on a test board and see what I can come up with.
Thank you very much !! :)
Up... I updated to SMF 1.1 and the problem remains... Does someone has a clue ?
Thank you very much in advance !
try to change the $txt['lang_locale'] that is in index.langauge.php that is in language folder maybe it will help
Well It doesn't help, actually... I tried different values without success.
I found this answer (http://www.simplemachines.org/community/index.php?topic=131302.msg857328#msg857328) (in french) and someone has commented the following lines if (setlocale(LC_TIME, $txt['lang_locale']))
{
foreach (array('%a', '%A', '%b', '%B') as $token)
if (strpos($str, $token) !== false)
$str = str_replace($token, $func['ucwords'](strftime($token, $time)), $str);
}
else
and It seems to work for him. But if I try to edit the subs.php file, I always get a corrupted file at line 3438-3439. The line $clean_name = strtr($filename, '������������������������', 'SZszYAAAAAACEEEEIIIINOOOOOOUUUUYaaaaaaceeeeiiiinoooooouuuuyy'); is not correctly rewritten and the forum cries.
Is there another solution inspired of this one, but without editing source files ?
Or how can I bypass this problem ?
Thank you very much !
Up... Is this such a difficult problem ? Does anyone has a clue ? Please ! :-s
Did you convert before or after you made those posts?
Try making a new post and see if it still happends.
Thank you very much for your interest in my problem. I think this doesn't matter... I made some posts before the conversion and other posts after, always having the same problem.
If there is something you think that you should know, please say... I'll tell you anything you would like (to solve this problem, of course) :-D
Thanks !
Hello, and i apoligize for the delayed response :(
If you go into the database with phpmyadmin or a similar tool and view whats in there, do the characters appear correctly?
What is phpMyAdmin? (http://www.simplemachines.org/community/index.php?topic=21919.0)
I apologize too for the delay :-) I've been very very busy... But... the problem seems to be solved, magicly... Strange, but I'm happy, now :-) Thank you very much...
ps. And yes, I remember that the characters appeared correctly in PhpMyAdmin when the problem was still open...