การแก้ไขภาษาเพี้ยน uft-8 ของ joomla เมื่อมีการย้าย hosting หรือ ย้ายฐานข้อมูล

Started by junjao, November 02, 2014, 04:50:05 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

junjao

การแก้ไขภาษาเพี้ยน uft-8 ของ joomla เมื่อมีการย้าย hosting หรือ ย้ายฐานข้อมูล mysql

set the mysql connection charset in includes/database.php file at about line 102 (second line below)

$this->_table_prefix = $table_prefix;
//@mysql_query("SET NAMES 'utf8'", $this->_resource); // THIS IS THE LINE TO UNCOMMENT
$this->_ticker = 0;
$this->_og = array();

เปลี่ยนจาก utf8 เป็น utf-8

ใน joomla จะ error แบบนี้เป็นส่วนใหญ่

อ้างอิง http://stackoverflow.com/questions/6902415/mysql-html-string-problem

สรพล
jun_jao2000@hotmail.com
MT4 MT5 EA Indicator Gold Bitcoin Oil
Register at https://www.exness.com/a/73208