hesk 2.3 success encode and decode Simple Chinese(gb2312)
Posted: Wed Feb 29, 2012 2:48 am
hesk 2.3 has great features like ticket to KB, support smtp, and etc, I upgraded from 2.2 to 2.3 but the structure change, the visitor use IE with encoding in GB2312 saw wrong code of Chinese ticket and article.
after one week research, I found a solution, the visitor can view and submit Chinese(GB2312 encoding) correctly, the text ind database also display correctly(with phpmyadmin, utf8)
first create database with collation utf8_general_ci, then copy the en fole to cn folder inside language folder.
(you can translate later).
do changes as follow:
1.
D:\wamp\www\hesk\language\cn\text.php
line 10
from
to
2.
line 11
from
to
3.
D:\wamp\www\hesk\inc\database.inc.php
line 73
Add new line after line "$hesk_db_link = …"
In the backend admin settings panel set the simple Chinese as default language.
that's all. enjoy!
I think this work for all non ascii language. I didn't try.
after one week research, I found a solution, the visitor can view and submit Chinese(GB2312 encoding) correctly, the text ind database also display correctly(with phpmyadmin, utf8)
first create database with collation utf8_general_ci, then copy the en fole to cn folder inside language folder.
(you can translate later).
do changes as follow:
1.
D:\wamp\www\hesk\language\cn\text.php
line 10
from
Code: Select all
$hesklang['LANGUAGE']='English';
Code: Select all
$hesklang['LANGUAGE']='Simple Chinese';
line 11
from
Code: Select all
$hesklang['ENCODING']='utf8';
Code: Select all
$hesklang['ENCODING']='gb2312';
D:\wamp\www\hesk\inc\database.inc.php
line 73
Add new line after line "$hesk_db_link = …"
Code: Select all
mysql_query( "SET NAMES 'gb2312'");
that's all. enjoy!
I think this work for all non ascii language. I didn't try.