Using 1.05 to set up a UTF-8 site

A place to discuss Joomla! translation matters.

Moderator: wendhausen

Locked
nengrong
Joomla! Intern
Joomla! Intern
Posts: 84
Joined: Sat Nov 12, 2005 5:21 am

Using 1.05 to set up a UTF-8 site

Post by nengrong » Wed Jan 04, 2006 3:11 pm

Hello,

I plan to have a fresh setup a website. UTF-8 is critical for this site.

SInce Joomla V1.1 belta or stable is still far away, and I have waited for too long, now I am considering using V1.05 stable.

My question is: what's the necessary modifications for making 1.0.5 working for utf-8?

I edited the english language file in backend CP, modifying charset=utf-8, this make the utf-8 displayable. Is this sufficient? Any other modifications? Need to re-save some iso-8859-1 files to utf-8 encoding?

Thanks.
signature

User avatar
Aris Ntatsis
Joomla! Guru
Joomla! Guru
Posts: 866
Joined: Thu Aug 18, 2005 11:18 pm
Location: Athens - Greece
Contact:

Re: Using 1.05 to set up a UTF-8 site

Post by Aris Ntatsis » Wed Jan 04, 2006 7:20 pm

You have to uncomment line 102 of the includes/database.php file!
Joomla Volunteer & Certified Joomla Administrator: https://volunteers.joomla.org/joomlers/ ... is-ntatsis
Υποστήριξη και Υπηρεσίες Joomla από το https://www.onscreen.gr

User avatar
davidgal
Joomla! Guru
Joomla! Guru
Posts: 963
Joined: Sat Aug 20, 2005 9:19 am
Location: Israel
Contact:

Re: Using 1.05 to set up a UTF-8 site

Post by davidgal » Fri Jan 06, 2006 11:14 am

nengrong wrote: My question is: what's the necessary modifications for making 1.0.5 working for utf-8?
A quick guideline to getting Joomla 1.0 to work with utf-8 is as follows:
- use MySQL version 4.1.2 or newer (older versions don't support utf-8).
- create an empty database manually before installing Joomla. Set the character set to utf8 with some collation (utf8_general_ci).
- set 'charset=utf-8' in the _ISO define in the language file
- As macman mentioned, you may need to uncomment one line of code in the includes/database.php file at about line 102 (second line below)

Code: Select all

		$this->_table_prefix = $table_prefix;
 //@mysql_query("SET NAMES 'utf8'", $this->_resource);    // THIS IS THE LINE TO UNCOMMENT
		$this->_ticker = 0;
		$this->_log = array();
Please note that the above does not make Joomla 1.0.x fully utf-8 compatible. All string functions will still be using singlebyte character functions. This works well in most cases. There could be some instances of garbage characters especially with diacritic Latin characters.
Last edited by davidgal on Fri Jan 13, 2006 8:43 pm, edited 1 time in total.
David Gal


Locked

Return to “Translations”