|
 |
|
เรื่อง ภาษาไทย ครับ Help Me insert จาก web แล้วเป็นภาษาไทยไม่ได้ครับมีวิธีแก้ยังไงครับ |
|
 |
|
|
 |
 |
|
Code
CREATE TABLE `ordertbl` (
`ProdNo` int(5) NOT NULL,
`OrdDate` date NOT NULL,
`OrdName` varchar(50) collate utf8_unicode_ci default NULL,
`OrdAddress` varchar(100) collate utf8_unicode_ci default NULL,
`OrdAmphur` varchar(30) collate utf8_unicode_ci default NULL,
`OrdProvince` varchar(30) collate utf8_unicode_ci default NULL,
`OrdZip` int(5) default NULL,
KEY `FKProdNo` (`ProdNo`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
Code
INSERT INTO `ordertbl` VALUES (0, '0000-00-00', '???????????????????? ???????????????????????????', '256 ???????????? 5 ???.???????????????????????????????????????', '???????????????', '???????????????????????????', 53000);
insert จาก web แล้วเป็นภาษาไทยไม่ได้ครับมีวิธีแก้ยังไงครับ
Code
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />ก็เป็น utf-8
Tag : - - - -

|
|
 |
 |
 |
 |
Date :
2009-07-11 21:44:30 |
By :
ballkrubutd |
View :
1199 |
Reply :
14 |
|
 |
 |
 |
 |
|
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ิbrowser มันไม่เปลี่ยนเป็น utf-8 มั้งลองเปลี่ยนเองดูซิ หายแน่นอนเลย
|
 |
 |
 |
 |
Date :
2009-07-11 21:58:01 |
By :
plakrim |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
Unicode (utf-8) เลยคับ
|
 |
 |
 |
 |
Date :
2009-07-11 21:59:14 |
By :
ballkrubutd |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
โค๊ด insert ข้างบนเอามาจากไหนละ
|
 |
 |
 |
 |
Date :
2009-07-11 22:02:20 |
By :
plakrim |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
$ObjInsert = mysql_query("INSERT INTO `ordertbl` VALUES ('$id', '$tSend', '$name','$address', '$aumphur', '$provice', '$zip');");
Id : P1001 ไม่เข้า
Date : 11-7-2009 ไม่เข้า
Name : ภาษาไทย
Address : ภาษาไทย
A. : ภาษาไทย
P. :ภาษาไทย
Zip : 53000 << ออกแต่ตรงนี้
|
 |
 |
 |
 |
Date :
2009-07-11 22:02:54 |
By :
ballkrubutd |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
insert เอามาจาก sql ข้างบนอ่า
ให้ insert ข้างล่างแล้วคับ
|
 |
 |
 |
 |
Date :
2009-07-11 22:04:37 |
By :
ballkrubutd |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
INSERT INTO `ordertbl` VALUES (0, '0000-00-00', '???????????????????? ???????????????????????????', '256 ???????????? 5 ???.???????????????????????????????????????', '???????????????', '???????????????????????????', 53000);
ไอ้นี่อะ เอามาจากการ export ของ phpmyadmin หรือเปล่า หรือว่า echo ออกมาดูก่อนบันทึก ชักมึนละ
|
 |
 |
 |
 |
Date :
2009-07-11 22:10:59 |
By :
plakrim |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
exort มาดูคับ มันได้ แบบนี้อะคับ
|
 |
 |
 |
 |
Date :
2009-07-11 22:17:38 |
By :
ballkrubutd |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
เปิดด้วย notepad ปะ
|
 |
 |
 |
 |
Date :
2009-07-11 22:24:16 |
By :
plakrim |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
เปิด Browse ดุใน phpmyadmin ก็เป็นภาษาต่างดาวคับ
|
 |
 |
 |
 |
Date :
2009-07-11 22:31:35 |
By :
ballkrubutd |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
insert ใน sql ภาษาไทยเข้า
แต่ insert ด้วย ภาษา php เป็นภาษา ต่างดาว ครับ
|
 |
 |
 |
 |
Date :
2009-07-11 22:49:55 |
By :
ballkrubutd |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
แปลกดีนะ คิดว่าน่าจะใช้ utf-8 หมดทุกอย่างแล้วใช่ไหม
|
 |
 |
 |
 |
Date :
2009-07-11 23:04:35 |
By :
plakrim |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ใช่คับทำไงดี 
|
 |
 |
 |
 |
Date :
2009-07-11 23:14:33 |
By :
ballkrubutd |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
mysql_query("SET NAMES UTF8"); เพิ่มตรงนี้ใต้ ตอน select database ออกเลยคับ
ฮ่าๆ thx หลายๆ 
|
 |
 |
 |
 |
Date :
2009-07-12 00:34:38 |
By :
ballkrubutd |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
|
|
|

|
Load balance : Server 01
|