|
 |
|
รบกวนถามผู้รู้นะค๊ะเกี่ยวกับ การ submit ไปแล้วขึ้นเป็นภาษา ??? |
|
 |
|
|
 |
 |
|
ลองเซตตรงหน้า สร้างฐานข้อมูลใหม่รึยังค่ะ ตรงการเรียงลำดับเซตเป็น tis620_thai_ci รึยังคะ
ถ้ายังไม่ได้ลองไปเซตที่ my.ini ตรง default-character-set= tis620
|
 |
 |
 |
 |
Date :
2009-05-18 14:08:39 |
By :
ree48012 |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ลองนำเข้า ฐานข้อมูลใหม่ก้อได้นะคะ แล้วเอา code character set620 ท้ายคำสั่ง sql ค่ะ ลองดูเรากอ้เคยเจอ
|
 |
 |
 |
 |
Date :
2009-05-18 14:12:20 |
By :
ree48012 |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
เซตหมดแล้วค่ะ เซตตั้งแต่ตอนสร้างฐานข้อมูลเลย
แต่ไม่รู้ว่ามันเป็นเพราะอะไรงง
แต่ก็ขอบคุณมากนะค๊ะ
|
 |
 |
 |
 |
Date :
2009-05-18 14:18:19 |
By :
noonee |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ลองใช้ตัวนี้ต่อบรรทัดถัดจาก $sql="...." ดูนะคับ
<?
$sql=".....";
mysql_query("set names tis620");
?>
|
 |
 |
 |
 |
Date :
2009-05-18 14:50:41 |
By :
backship |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ลองแล้วก็ไม่ได้อ่ะค่ะ แต่ก็ขอบคุณมากนะค๊ะ
|
 |
 |
 |
 |
Date :
2009-05-18 15:31:25 |
By :
noonee |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
มันก็ยังไม่ได้อ่ะค่ะ
|
 |
 |
 |
 |
Date :
2009-05-18 16:44:25 |
By :
noonee |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ต้องถามว่าหน้าเพจ (meta tag) ใช้ utf หรือ tis
database ใช้ char set อะไร collection อะไร
ควรจะใช้ให้เหมือนกันนะครับ ผมแนะนำให้ใช้ utf8 ทุกสิ่งทุกอย่าง
ถ้าลอง import จากไฟล์แล้วไม่ได้ ให้ลอง copy ทั้งหมดมา query เองเลยใน phpmyadmin อะครับ
ไม่รู้จะช่วยยังไงมองไม่เห็นด้วยซิ
|
 |
 |
 |
 |
Date :
2009-05-18 22:06:38 |
By :
plakrim |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ว่าแย่จังเราก็เปงเหมือนกานละ ไม่รู้จะแก้ด้วยวิธีไหนเหมือนกันค่ะ ได้แต่ทำจัย หุหุ สู้ๆๆ นะค่ะ ได้แล้วมาบอกกานบ้างน้า
|
 |
 |
 |
 |
Date :
2009-05-19 16:20:11 |
By :
anchalika |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ลองแบบนี้
ฐานข้อมูล utf8_general_ci
ตอนเชือมต่อ
mysql_connect()// ปรกติ
mysql_db_query($database,'SET NAMES utf8');
ไฟล์ต้องเซฟเป็น utf-8 ห้ามเซฟเป็น ANSI
เวลาดึงข้อมูลมา ให้ใช้ปรกติ
mysql_query('SELECT * FROM table');
ลองดูนะ
|
 |
 |
 |
 |
Date :
2009-05-19 16:32:00 |
By :
danya |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
|
|
|

|
Load balance : Server 05
|