Page 1 of 1

Character encoding problem [solved]

Posted: Fri Sep 07, 2007 2:23 am
by aozuas
I am using 1.1.2 version.
Firefox 2.0.0.6
Explorer 6

I had a problem with the months translation of News, and could never solve. When I change the Default language for the frontend to Brasilian Portuguese, I have strange characters in months name, instead of accents.
I tryed to change the files action.editarticle.php and action.addarticle.php, using something like the PHP function utf8_encode(), without success. The problem is that the months are not in UTF8 encoding, but in ISO-8859-1 or something like that, but the admin is in UTF8.
The problem is worse in explorer, as you can see in this image:

Image

Users cant change the months properly.

And this is the way I see in Firefox:

Image

I always have this problem, since I began to use CMSMS, version 0.9, I think.

Any idea would be great.

Thanks

Aleph Ozuas
www.ciberarte.com.br
www.dzo.com.br

Re: Character encoding problem

Posted: Fri Sep 07, 2007 6:43 am
by cyberman
Had the same problem on a german site. The solution was

Code: Select all

$config['locale'] = 'de_DE.utf-8';
Maybe it helps you too. Dont forget to clear chache ;).

Re: Character encoding problem [solved]

Posted: Fri Sep 07, 2007 2:19 pm
by aozuas
Thank you again cyberman! Now is working great!

Aleph Ozuas
www.ciberarte.com.br
www.dzo.com.br

Re: Character encoding problem

Posted: Tue Sep 11, 2007 1:19 am
by aozuas
cyberman,
one of my sites didn't accept that solution. (another server)
when I applied the "$config['locale'] =" solution, the months names returned to English.
any other idea?
thanks again.

Re: Character encoding problem

Posted: Tue Sep 11, 2007 10:58 am
by Pierre M.
Hello,
aozuas wrote: any other idea?
ask your hosting provider to install the wanted locales on his systems ?

(sorry, this is not a standalone technical solution)

Pierre M.

Re: Character encoding problem

Posted: Tue Sep 11, 2007 1:24 pm
by alby
aozuas wrote: one of my sites didn't accept that solution. (another server)
when I applied the "$config['locale'] =" solution, the months names returned to English.
any other idea?
locale string is server-dependant.
On Windows see here
On Linux run this command (for languages installed): locale -a

Alby

Re: Character encoding problem [solved]

Posted: Tue Sep 11, 2007 4:37 pm
by aozuas
thank you guys!
will contact the server admin.