|
 |
|
เรื่องภาษาในฐานข้อมูล คือว่าผมเขียนโค้ดติดต่อในดาต้าเบสแบบนี้นะครับ |
|
 |
|
|
 |
 |
|
Code (PHP)
<?php
$host="localhost";
$user="root";
$pass="root";
$dbname="db_star";
$c = mysql_connect($host,$user,$pass);
$connect_data_unicode = mysql_db_query($dbname, "SET NAMES UTF8", $c);
if (!$c){
echo "Database Connect Failed.";
exit();
}
?>
ลองดูครับ
|
 |
 |
 |
 |
Date :
2009-08-27 13:54:08 |
By :
zankumuro |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ผมไปเปลี่ยนที่ database ที่ collection เป็น tis620_thai_ci อ่ะคับ ไม่รู้ว่าเป็นเพราะตรงนี้ ป่าว
|
 |
 |
 |
 |
Date :
2009-08-27 13:57:15 |
By :
peak_z |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ถ้า mysql แก้โดยใช้ SET NAMES UTF 8
แล้ว ORACLE ต้องแก้ยังไงหรือคะ
พอดีติดปัญหาเหมือนเจ้าของกระทู้เลยค่ะ 
|
 |
 |
 |
 |
Date :
2009-08-27 13:58:53 |
By :
balloonmath |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ขอบคุณพี่ Y-Masato มากนะคับ ^^
ได้ดั่งใจนึกเลย
|
 |
 |
 |
 |
Date :
2009-08-27 14:23:08 |
By :
tanuwate |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ปรากฏว่า ข้อมูลที่เคยเพิ่มลงไป เป็นขอม ตอนเรียกออกมาโชวใหม่
แปลว่า ต้องแก้ทั้งหมด แร้วน่าจะใช้ได้ใช่ไหมคับ
|
 |
 |
 |
 |
Date :
2009-08-27 14:31:04 |
By :
tanuwate |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
|
|
|

|
Load balance : Server 02
|