Character encoding problem [solved]

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
aozuas

Character encoding problem [solved]

Post 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
Last edited by aozuas on Tue Sep 11, 2007 4:38 pm, edited 1 time in total.
cyberman

Re: Character encoding problem

Post 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 ;).
aozuas

Re: Character encoding problem [solved]

Post by aozuas »

Thank you again cyberman! Now is working great!

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

Re: Character encoding problem

Post 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.
Pierre M.

Re: Character encoding problem

Post 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.
alby

Re: Character encoding problem

Post 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
aozuas

Re: Character encoding problem [solved]

Post by aozuas »

thank you guys!
will contact the server admin.
Locked

Return to “CMSMS Core”