while iam working for translate the new version to arabic i surprised
why 1.1 alpha1 hate arabic ?
because you used utf-8 for encoding and arabic character work only with windows-1256
this means 1.1 alpha1 can only write in english fonts in the content , sections , category , menus , modules and mambot
so when you write arabic your character will changed to ?? like this picture in the attachment
[SOLVED] - alpha1: hate arabic
- Fuga
- Joomla! Apprentice
- Posts: 12
- Joined: Sat Sep 03, 2005 9:11 pm
- Contact:
[SOLVED] - alpha1: hate arabic
You do not have the required permissions to view the files attached to this post.
Last edited by Jinx on Mon Apr 24, 2006 4:43 pm, edited 1 time in total.
- Jinx
- Joomla! Champion
- Posts: 6508
- Joined: Fri Aug 12, 2005 12:47 am
- Contact:
[UNDER REVIEW] - Re: 1.1 alpha1: hate arabic
Oke first of all this is a DB issue not simple an UTF-8/windows-1256 issue. Can u tell me what DB version u are using and if u made any changes to the install script of Joomla.
Johan Janssens - Joomla Co-Founder, Lead Developer of Joomla 1.5
http://www.joomlatools.com - Joomla extensions that just work
http://www.joomlatools.com - Joomla extensions that just work
- Fuga
- Joomla! Apprentice
- Posts: 12
- Joined: Sat Sep 03, 2005 9:11 pm
- Contact:
Re: [UNDER REVIEW] - 1.1 alpha1: hate arabic
mmm so why joomla 1.0.x works fine ?
anyway this is my info :
Apache Web Server Version 1.3.33
PHP Script Language Version 4.3.10
MySQL Database Version 4.1.8
Zend Optimizer Version 2.5.7
phpMyAdmin Database Manager Version 2.6.1-rc2
========
i will downgrade my mysql to be sure this problem is from the db
anyway this is my info :
Apache Web Server Version 1.3.33
PHP Script Language Version 4.3.10
MySQL Database Version 4.1.8
Zend Optimizer Version 2.5.7
phpMyAdmin Database Manager Version 2.6.1-rc2
========
i will downgrade my mysql to be sure this problem is from the db
- Jinx
- Joomla! Champion
- Posts: 6508
- Joined: Fri Aug 12, 2005 12:47 am
- Contact:
Re: [UNDER REVIEW] - 1.1 alpha1: hate arabic
As I thought, this problem has already been identified and will be fixed in alpha2. In the mean time here is a fix :
In the file includes/database.php on line 92/93 remove the following
//Set charactersets (needed for MySQL 4.1.2+)
mysql_query("SET CHARACTER SET utf8",$this->_resource);
mysql_query("SET NAMES 'utf8'", $this->_resource);
This should fix your problem.
In the file includes/database.php on line 92/93 remove the following
//Set charactersets (needed for MySQL 4.1.2+)
mysql_query("SET CHARACTER SET utf8",$this->_resource);
mysql_query("SET NAMES 'utf8'", $this->_resource);
This should fix your problem.
Johan Janssens - Joomla Co-Founder, Lead Developer of Joomla 1.5
http://www.joomlatools.com - Joomla extensions that just work
http://www.joomlatools.com - Joomla extensions that just work
- Fuga
- Joomla! Apprentice
- Posts: 12
- Joined: Sat Sep 03, 2005 9:11 pm
- Contact:
Re: [PATCHED] - 1.1 alpha1: hate arabic
ooh its to late i have downgraded my mysql so i can not try your fix to be sure
after i downgrade my mysql works fine with arabic
where i can submit the bugs for language ?
after i downgrade my mysql works fine with arabic
where i can submit the bugs for language ?
You do not have the required permissions to view the files attached to this post.
- Jinx
- Joomla! Champion
- Posts: 6508
- Joined: Fri Aug 12, 2005 12:47 am
- Contact:
Re: [PATCHED] - 1.1 alpha1: hate arabic
U can post them on the 1.1 bugtracker on the forge.
Johan Janssens - Joomla Co-Founder, Lead Developer of Joomla 1.5
http://www.joomlatools.com - Joomla extensions that just work
http://www.joomlatools.com - Joomla extensions that just work
- davidgal
- Joomla! Guru
- Posts: 963
- Joined: Sat Aug 20, 2005 9:19 am
- Location: Israel
- Contact:
Re: [PATCHED] - 1.1 alpha1: hate arabic
Hi,Fuga wrote: while iam working for translate the new version to arabic i surprised
why 1.1 alpha1 hate arabic ?
because you used utf-8 for encoding and arabic character work only with windows-1256
this means 1.1 alpha1 can only write in english fonts in the content , sections , category , menus , modules and mambot
so when you write arabic your character will changed to ?? like this picture in the attachment
The problem you encountered is not unique to Arabic. I too, ran into the same problems. However, utf-8 does most definitely work with Arabic and all other languages.
The whole idea is to get away from language specific charsets such as windows-1256 and all others and live with only one charset for all. Just think of all the settings one needs to get Arabic working correctly - php needs to know, the browser needs to know, the database needs to know, the webserver needs to know. The great idea behind utf8 and unicode in general is that everthing will have one setting and be ready for all languages.
Some background on utf-8 http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8
True, the road to the rose garden has some bumps and Joomla is now a new traveller on this road.
Your inputs on Arabic specific issues, as the new version develops, will be most welcome.
David Gal