Joom!Fish, encodings and UTF-8 - How to or Newies read first - Joomla! Forum - community, help and support
due many questions in last weeks, try summarize issues encoding on multilanguage sites 1.0 series.
basically, bilanguage sites, 1 of languages english not have problems encoding, if experience such, highly advise to put non-english language default. allow run joomla! backend on language , in of cases, solves 99% of encoding problems , database missmatches in collations.
if still experience problems encoding of other language, caused in of cases apache (or other server) default encoding, preset. on servers, encoding sent header in cookie , causes issues. in such case, there easy , fast solution:
- open file globals.php , @ end of it, right after last
and right before
put following code:
where encoding should replaced encoding used language not english. example (windows cyrillic):
while bilingual sites more or less easy , problemless, when happens need build web site in 3 languages or in 2 languages, these use different charsets , none of them english, highly recommend consider utf-8 web site.
how it?
please these actions, before installing joomla!
1. create database manually , go operations, there set collation of database utf8_general_ci (screenshots available @ http://www.joomfish.net).
2. open file includes/database.php go line 102 , change following code from:
to:
now save file.
3. open file globals.php , @ end of it, right after last
and right before
put following code:
4. open file language/english.php , go on line 421. change following code from:
to:
5. upload joomla! , install joomla! in normal way.
6. when install new languages, please sure saved utf-8 without bom. cool editors allow crimson editor , notepad++
that's it. expected work charm. more information how joomla! 1.0.x handles utf-8 available in following post:
http://forum.joomla.org/index.php/topic,55065.0.html
you can consider use hack allows generation of pdf documents in utf , works language:
http://forum.joomla.org/index.php/topic,110713.0.html
author note:
older versions of mysql doesn't supports databases collation utf8_general_ci, not able create compatible utf-8 site.
source: http://www.joomfish.net/content/view/39 ... g,english/
basically, bilanguage sites, 1 of languages english not have problems encoding, if experience such, highly advise to put non-english language default. allow run joomla! backend on language , in of cases, solves 99% of encoding problems , database missmatches in collations.
if still experience problems encoding of other language, caused in of cases apache (or other server) default encoding, preset. on servers, encoding sent header in cookie , causes issues. in such case, there easy , fast solution:
- open file globals.php , @ end of it, right after last
code: select all
}
and right before
code: select all
?>
put following code:
code: select all
header("content-type: text/html; charset=encoding");
where encoding should replaced encoding used language not english. example (windows cyrillic):
code: select all
header("content-type: text/html; charset=windows-1251");
while bilingual sites more or less easy , problemless, when happens need build web site in 3 languages or in 2 languages, these use different charsets , none of them english, highly recommend consider utf-8 web site.
how it?
please these actions, before installing joomla!
1. create database manually , go operations, there set collation of database utf8_general_ci (screenshots available @ http://www.joomfish.net).
2. open file includes/database.php go line 102 , change following code from:
code: select all
// @mysql_query("set names 'utf8'", $this->_resource);
to:
code: select all
@mysql_query("set names 'utf8'", $this->_resource);
now save file.
3. open file globals.php , @ end of it, right after last
code: select all
}
and right before
code: select all
?>
put following code:
code: select all
header("content-type: text/html; charset=utf-8");
4. open file language/english.php , go on line 421. change following code from:
code: select all
define('_iso','charset=iso-8859-1');
to:
code: select all
define('_iso','charset=utf-8');
5. upload joomla! , install joomla! in normal way.
6. when install new languages, please sure saved utf-8 without bom. cool editors allow crimson editor , notepad++
that's it. expected work charm. more information how joomla! 1.0.x handles utf-8 available in following post:
http://forum.joomla.org/index.php/topic,55065.0.html
you can consider use hack allows generation of pdf documents in utf , works language:
http://forum.joomla.org/index.php/topic,110713.0.html
author note:
older versions of mysql doesn't supports databases collation utf8_general_ci, not able create compatible utf-8 site.
source: http://www.joomfish.net/content/view/39 ... g,english/
other aspect not underestimate:
it suggested enter contents raw opposed html entities.
jce editor setting right parameters in mambot.
this solve, among others, search issues on site.
it suggested enter contents raw opposed html entities.
jce editor setting right parameters in mambot.
this solve, among others, search issues on site.
Comments
Post a Comment