UTF-8 characters doesn't work in the article and its titlle

UTF-8 characters doesn't work in the article and its titlle

Postby arigsor on Sat Mar 13, 2010 12:02 pm

In my installation ( www.co-ltd.mn ) UTF-8 characters doesn't work in the article and its titlle.
MySQL database character is set as UTF-8 and collation character: UTF-8_general_ci.

What should I do?
arigsor
 
Posts: 2
Joined: Sat Mar 13, 2010 11:56 am
LifeType Version: 1.2.10

Re: UTF-8 characters doesn't work in the article and its titlle

Postby jondaley on Sun Mar 14, 2010 9:42 am

If you look in the HTML head tags, you will find:

<meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1" />

You are probably using the english/UK locale, which currently not set to UTF (due to historical purposes, ie. being around before the UTF stuff existed in PHP). I am not an encoding expert, but I gather that, particularly for new blogs, you can just switch the tag at the top of the locale files to be in UTF, and you will be all set.

I think it works in old blogs too, but not perfectly, so we've been trying to figure out a good way to convert the old blogs when we switch to 2.0.
jondaley
Lifetype Expert
 
Posts: 6169
Joined: Thu May 20, 2004 6:19 pm
Location: Pittsburgh, PA, USA
LifeType Version: 1.2.11 devel branch

Re: UTF-8 characters doesn't work in the article and its titlle

Postby arigsor on Sun Mar 14, 2010 10:42 am

Thank you Jondaley,
It is helpful.

In which file's of the HTML head tags, I could find the following:

<meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1" />



I am using the english/UK locale, in which I changed character set as:

$messages['encoding'] = 'utf8';

Regards
arigsor
 
Posts: 2
Joined: Sat Mar 13, 2010 11:56 am
LifeType Version: 1.2.10

Re: UTF-8 characters doesn't work in the article and its titlle

Postby jondaley on Mon Mar 15, 2010 6:38 pm

The content-type header is probably is header.template.
jondaley
Lifetype Expert
 
Posts: 6169
Joined: Thu May 20, 2004 6:19 pm
Location: Pittsburgh, PA, USA
LifeType Version: 1.2.11 devel branch


Return to Configuration and Installation