warning: realpath() [function.realpath]: SAFE MODE Restriction in effect. The script whose uid is 1005 is not allowed to access /tmp owned by uid 0 in /var/www/sites/sugree/codenone.com/subdomains/www/html/includes/file.inc on line 190.
warning: realpath() [function.realpath]: SAFE MODE Restriction in effect. The script whose uid is 1005 is not allowed to access /tmp owned by uid 0 in /var/www/sites/sugree/codenone.com/subdomains/www/html/includes/file.inc on line 190.
print ออก terminal?
ออกเว็บสิครับ
คือใน .rb เราจะสามารถพิมพ์ไทยลงไปได้ใช้ไหมครับ
แต่มันแสดงออกมาไม่ได้ มันจะ error ยกตัวอย่างเช่นการสร้าง .rb ใน helper
พอรู้ไหมครับว่าต้องทำอย่างไร
puts "ภาษาไทยนะจ๊ะ"
#=> ภาษาไทยนะจ๊ะ
?
ผมทดลอง
แล้วใช้แบบนี้ใน rhtml
<%= test_helper %>ก็ได้ผลถูกต้องดีนะ
เดาว่า editor แหง
เศร้าครับ T_T
สุดท้าย พบว่าแค่ encode เป็น UTF-8 without BOM เหมือนตอนทำ .rhtml ก็จบ
ขอบคุณ taiko ครับ
อ้อนี่เว็บไซต์ที่ทำด้วย RoR ครับ http://www.wish.in.th
กำลังพัฒนาให้เป็น Social Networking website ดีๆ เพื่อคนไทย
ภาษาไทยเลยจำเป็นอย่างยิ่ง ;)