**ถ้าตั้งผิดหมวด ขออภัยไว้ล่วงหน้าด้วยนะครับ**

ผมต้องการให้ xml แสดงผลและดึงข้อมูลเป็นภาษาไทยให้ได้ครับ แต่ติดปัญหาดังนี้
เท่าที่ผมหาดูจากกระทู้เก่าและกระทู้ของเวปอื่นๆ เห็นมีบอกว่านอกจาก encoding="utf-8" แล้ว ให้ save file เป็น utf-8 ด้วย แต่ทำยังไงก็ติด error อยู่ดี โดย code ไฟล์ที่ผมได้มาเป็นดังนี้
<?php
....
header("Content-type: text/xml");
echo "<?xml version='1.0' encoding='utf-8'?>";
echo "<!-- generated by Visuwords(TM) xml.php ... visuwords.com -->";
echo "<!-- (c) 2007 dunnbypaul.net -->";
echo "<{$this->roottag}>";
...
?>
ซึ่ง encode ไฟล์ไว้เป็น ANSI ตอนดึงข้อมูล eng ก็ปกติดี แต่พอเปลี่ยนเป็นค่าตัวแปลไทยแล้วมันได้ error แบบนี้
The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.
--------------------------------------------------------------------------------
An invalid character was found in text content. Error processing resource '
http://localhost/visuwords/v2.0/lex.php?find= 
คำ'...
เลยลองทำตามกระทู้เก่าที่เคยบอกไว้ว่า ให้ save as ไฟล์เป็น UTF-8 กลายเป็นว่าผมได้ error แบบนี้แทน

The XML page cannot be displayed
Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later.
--------------------------------------------------------------------------------
Invalid at the top level of the document. Error processing resource '
http://localhost/visuwords/v2.0/lex.php?find= 
กา'. Lin...
<?xml version='1.0' encoding='utf-8'?><!-- generated by Visuwords(TM) xml.php ... visuwords.com --><!-- (c)...
กลายเป็นว่า eng ก็ไม่ได้ ไทยก็ไม่ได้

เลยอยากถามพี่ๆครับว่า มันไปผิดตรงไหนครับ และแก้ยังไงดี
ขอบคุณล่วงหน้าครับ
