Simple Machines Community Forum

SMF Support => SMF 1.1.x Support => Aiheen aloitti: MacDo - lokakuu 19, 2006, 05:23:09 AP

Otsikko: [not solved] Accented characters problem in months names, RC3, French pack
Kirjoitti: MacDo - lokakuu 19, 2006, 05:23:09 AP
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 :

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 ! :)
Otsikko: Re: Accented characters problem in months names, RC3, French pack
Kirjoitti: Oldiesmann - lokakuu 19, 2006, 10:05:05 AP
What browser are you using?

Have you tried other browsers and/or computers?
Otsikko: Re: Accented characters problem in months names, RC3, French pack
Kirjoitti: MacDo - lokakuu 19, 2006, 10:47:31 AP
The problem happens with :
On other computers, the problem is the same... Thank you for your help ! :)
Otsikko: Re: Accented characters problem in months names, RC3, French pack
Kirjoitti: MacDo - lokakuu 20, 2006, 03:49:09 AP
 :'( Really ? This is a difficult question ?? Does anyone has a clue ?  :'(
Otsikko: Re: Accented characters problem in months names, RC3, French pack
Kirjoitti: 青山 素子 - lokakuu 20, 2006, 10:52:08 AP
A link to your SMF would be appreciated.
Otsikko: Re: Accented characters problem in months names, RC3, French pack
Kirjoitti: MacDo - lokakuu 20, 2006, 11:47:18 AP
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 !

Otsikko: Re: Accented characters problem in months names, RC3, French pack
Kirjoitti: 青山 素子 - lokakuu 20, 2006, 11:55:58 AP
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.
Otsikko: Re: Accented characters problem in months names, RC3, French pack
Kirjoitti: MacDo - lokakuu 20, 2006, 12:06:47 IP
Thank you very much !!   :)
Otsikko: Re: [not solved] Accented characters problem in months names, RC3, French pack
Kirjoitti: MacDo - joulukuu 09, 2006, 06:30:41 AP
Up... I updated to SMF 1.1 and the problem remains... Does someone has a clue ?

Thank you very much in advance !
Otsikko: Re: [not solved] Accented characters problem in months names, RC3, French pack
Kirjoitti: Croco - joulukuu 09, 2006, 06:31:05 IP
try to change the $txt['lang_locale'] that is in index.langauge.php that is in language folder maybe it will help
Otsikko: Re: [not solved] Accented characters problem in months names, RC3, French pack
Kirjoitti: MacDo - joulukuu 15, 2006, 05:41:18 AP
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
Koodi (/sources/Subs.php, line 868) [Valitse]
   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 !
Otsikko: Re: [not solved] Accented characters problem in months names, RC3, French pack
Kirjoitti: MacDo - joulukuu 27, 2006, 12:17:50 IP
Up... Is this such a difficult problem ? Does anyone has a clue ? Please ! :-s
Otsikko: Re: [not solved] Accented characters problem in months names, RC3, French pack
Kirjoitti: jerm - tammikuu 30, 2007, 07:52:11 IP
Did you convert before or after you made those posts?
Try making a new post and see if it still happends.
Otsikko: Re: [not solved] Accented characters problem in months names, RC3, French pack
Kirjoitti: MacDo - tammikuu 31, 2007, 09:35:40 AP
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 !
Otsikko: Re: [not solved] Accented characters problem in months names, RC3, French pack
Kirjoitti: metallica48423 - toukokuu 05, 2007, 12:22:55 AP
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)
Otsikko: Re: [not solved] Accented characters problem in months names, RC3, French pack
Kirjoitti: MacDo - kesäkuu 25, 2007, 04:45:30 AP
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...