|
 |
|
ใช้ bbcode แล้ว ภาษาไทยเป็น alien อ่ะครับ ช่วยทีครับ |
|
 |
|
|
 |
 |
|
โอว... รุ้ได้งัยว่าภาษาเอเลี่ยน คุณเคยเรียนมาก่อนรึครับ
อาจจะเป็นภาษาท่านเทพก็ได้ 
|
 |
 |
 |
 |
Date :
2009-10-14 16:52:03 |
By :
danya |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
อิอิ ภาษาเทพ  
htmlentities() มันencode ภาษาไทยผิดเพี้ยน
ลองเปลี่ยนมาใช้ htmlspecialchars() แทนครับ
|
 |
 |
 |
 |
Date :
2009-10-14 17:29:03 |
By :
xbeginner01 |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
โห คุณ ดุนยา คิดนานไหมนี่ ภาษาเทพเนี่ยะ    
ไดเแล้วครับ ใช้วิธีของท่าน xbeginner01 ครับ
ขอบคุณทุกท่านมากครับ
|
 |
 |
 |
 |
Date :
2009-10-14 20:43:55 |
By :
cjmling |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ขอความรู้หน่อยครับ คุณ xbeginner01
htmlspecialchars() เอาไว้ทำอะไรอ่ะครับ ?
|
 |
 |
 |
 |
Date :
2009-10-14 21:20:17 |
By :
onizike |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
htmlspecialchars() เป็นการแปลงอักขระพิเศษให้เป็นรหัสอักษรในภาษา html (html entity) เช่น < ให้เป็น < ,& ให้เป็น & เป็นต้น
ในงาน bbcode เป็นการป้องกันไม่ให้ใช้แทก <..> หรืออีกนัยหนึ่งก็เพื่อใช้แสดงอักขระเหล่านี้
ส่วน htmlentities() ความหมายก็เหมือนกับ htmlspecialchars() แต่มันจะแปลงทุกตัวทำให้ภาษาไทยเลยผิดเพี้ยนไปด้วย ฟังก์ชันนี้ผมเองก็ไม่รู้วิธีแก้น่ะ เลยหันมาใช้ htmlspecialchars() แทนเพราะมันเจาะจงแปลงแต่อักขระพิเศษ
|
 |
 |
 |
 |
Date :
2009-10-14 21:59:33 |
By :
xbeginner01 |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ขอบคุณมากมายเลยครับ คุณ xbeginner01 สงสัยมานานแล้ว หายสงสัยสักที 
|
 |
 |
 |
 |
Date :
2009-10-14 22:12:10 |
By :
onizike |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
|
|
|

|
Load balance : Server 04
|