จั่นเจาดอทคอม ถามตอบ คอมพิวเตอร์ อินเตอร์เน็ต Forex MT4 MT5 เทรดทอง

คอมพิวเตอร์ อินเตอร์เน็ต => คอมพิวเตอร์ อินเตอร์เน็ต โดเมนเนม โฮสติ้ง => Topic started by: junjao on November 02, 2014, 04:50:05 PM

Title: การแก้ไขภาษาเพี้ยน uft-8 ของ joomla เมื่อมีการย้าย hosting หรือ ย้ายฐานข้อมูล
Post by: junjao on November 02, 2014, 04:50:05 PM
การแก้ไขภาษาเพี้ยน 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