ผมเจอ bug ของ PHP บน Ubuntu ไม่ทราบว่า Debian จะเจอเหมือนกันหรือเปล่า

พอดีว่าผมเจอ bug ของ PHP บน Ubuntu 8.04 ขณะที่จะพัฒนาเว็บชุมชน
โดยจะใฃ้คำสั่ง code php เพื่อเรียกไฟล์ที่มีลักษณะโครงสร้าง แบบ csv ซึ่งจะสามารถ import ได้จากโปรแกรม spreed sheet มันก็จะเป็น Text File ธรรมดาละครับ ที่จะขั้นข้อมูลด้วย ,
http://www.sangaban.org/download/bugs/news.csv <=== ข้อมูลแบบนี้อะครับ เป็น utf-8
และผมใช้คำสั่งดังรูปข้างล่าง
<?php
$file = fopen("news.txt","r");
while (!feof($file))
{
print_r(fgetcsv($file,1024));
print "";
}
fclose($file);
?>
ทดลองดูได้ครับ bug ก็คือว่าไม่สามารถดึงอักษณ utf-8 ที่เป็นภาษาไทยมาแสดงผลได้เลย ผมพยายามจะไปแจ้งที่ bugs.php.net แล้วแต่ปรากฎว่าเข้าไม่ได้ เป็น bug ของ function fgetcsv นะครับ function fgets ไม่มีปัญหาครับ สามารถเรียกอ่านได้ตามปรกติ
ไม่ทราบว่าเป็นแต่เฉพาะ Ubuntu หรือเปล่า Debian จะเป็นด้วยหรือเปล่าครับ

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <pre> <blockquote> <img> <h3> <h4> <h5>
  • Lines and paragraphs break automatically.
  • E-Mail addresses are hidden with reCAPTCHA Mailhide.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.