|
 |
|
ช่วยทีคับไม่ support ภาษาไทยคับ ลองดูผลลัพท์แล้วคับ ปรากฏว่าไม่ support ภาษาไทยเลย |
|
 |
|
|
 |
 |
|
ไม่ support ยังไงครับ มันมีสี่เหลี่ยมด้วยใช่ไหม ใช้ iconv มาช่วยนะครับ
|
 |
 |
 |
 |
Date :
2009-04-27 23:07:57 |
By :
plakrim |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ยังไงคับ ขอรายละเอียดอีกนิดคับ มือใหม่
|
 |
 |
 |
 |
Date :
2009-04-27 23:12:29 |
By :
นรินทร์ |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
จริงๆ อยากจะบอกว่า มันเป็นปัญหาโลกแตกครับ เพราะถ้าพิมพ์ติดๆ กันไม่เคาะวรรคเลย มันจะตัดลงมายากมากให้ภาษาไทยมันยังสมบูรณ์อยู่ ผมว่าใช้แค่ nl2br ก็พอแล้วครับ แต่ถ้ายังอยากใช้ wordwrap อยู่
Code (PHP)
<?php
echo iconv("TIS-620", "UTF-8", wordwrap($text, 10, "\n", true)); // ถ้ายังไม่ได้อยู่ลองสลับ tis กับ utf ดูนะ
?>
แบบนี้ไม่รู้จะช่วยได้หรือเปล่านะ ผมไม่เคยคำจะแก้ปัญหานี้เลยให้ตายเหอะ
|
 |
 |
 |
 |
Date :
2009-04-27 23:16:58 |
By :
plakrim |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ไม่ซัพพอต ภาษาไทยยังไงอะ ทำในเครื่องหรือในไหนอะ เราก็เคยเปง ทำในเครื่องเปงภาษาไทยดี แต่พออัพขึ้นเซริฟกลายเปงต่างด้าว แต่ตอนนี้แก้ได้แล้ว ยังไงก็มาบอกละกันนะค่ะ เผื่อว่าจะช่วยกันได้ สู้ๆๆค่ะ
|
 |
 |
 |
 |
Date :
2009-04-28 09:23:48 |
By :
anchalika |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ทั้งในเครื่องและใน host เลยคับ
|
 |
 |
 |
 |
Date :
2009-04-28 09:37:45 |
By :
นรินทร์ |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ลอง เซฟ type เป็น unicode กะ ascii ได้ ป่ะ ครับ เวลา ก่อน อัพ ขึ้น อ่ะ
|
 |
 |
 |
 |
Date :
2009-04-28 10:30:10 |
By :
McLaizer |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
AddDefaultCharset TIS-620
php_value default_charset TIS-620
# enable PHP error logging
php_flag log_errors on
ลองสร้างไฟล์นี้ขึ้นมานะค่ะ แล้วตั้งชื่อเป็น .htaccess แล้วเอาไฟล์นี้ไปไว้ที่เซริฟที่อัพขึ้นไปอะค่ะ ลองดูนะค่ะ ถ้าใช้ไม่ได้ก็ขอโทดด้วยน้า อย่าว่ากานนะค่ะ อิอิ
|
 |
 |
 |
 |
Date :
2009-04-28 13:04:17 |
By :
anchalika |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
|
|
|

|
Load balance : Server 03
|