Byte-Order Mark found in UTF-8 File

WarningByte-Order Mark found in UTF-8 File.
The Unicode Byte-Order Mark (BOM) in UTF-8 encoded files is known to cause problems for some text editors and older browsers. You may want to consider avoiding its use until it is better supported.

วันนี้นั่งทำเว็บเปิดร้านค้าซึ่งเป็นโปรเจ็คที่ซุ่มทำมานาน(3ปี) และได้ทำการออกแบบเว็บเป็น xhtml ลองเอาไป Validation ปรากฏว่าผ่านหมดแต่มีขึ้นเตือนอย่างนึงที่นานๆเจอที

This Page Is Valid XHTML 1.0 Strict!

Result:Passed validation, 1 warning(s)

จริงมันก็แค่ warning ซึ่งไม่มีผลอะไรมากไม่ต้องแก้ไขก็ได้แต่พอดีผมว่างเลยหาวิธีแก้ จริงๆแปลไม่ออกหรอกว่ามันหมายความว่าไง อิอิ แต่คิดว่าไฟล์มันไม่ใช่ Encoding เป็น UTF-8 จริงๆก็ลองใช้ EditPlus เชฟไฟล์ให้ Encoding เป็น UTF-8 อัพไฟล์แล้ว Validation ใหม่ก็ไม่หายนั่งวิธีแก้ซักพักก็เลยแก้ได้

page properties
Dreamweaver Page Properties

วิธีการแก้ไข Byte-Order Mark found in UTF-8 File
1.เปิด Dreamweaver ขึ้นมาเข้าไปที่ Page Properties หรือกดคีย์ลัด Ctrl + J
2.ไปที่เมนู Title/Encoding
3.ทำการคลิ้กที่ Include Unicode Signature (BOM) ออกแล้วก็ Reload (ดูจากรูป)
4.เชฟไฟล์แล้วอัพโหลดไฟล์ขึ้น Server กลับไป Validation ใหม่

Result: Passed validation

เพียงเท่านี้ก็จะหายเตือนจาก W3C แล้วครับ สาวก xHTML ขอให้โชคดี

  • http://www.shopnflbroncosjerseys.com/peyton-manning-jerseys-c-21.html Peyton manning jersey

    I request more people would take down sites like this that are in truth helpful to read. With all the fuzz ball poppet floating around on the net, it is rare to pore over a locate like yours instead.

  • http://bydre.soulcast.com/1/Choose-the-monster-cables-really-worth-collectively-with-your-new-TV Beats by dr dre headphones

    That is a great issue, I am very happy to read this script, and I approve with the points of this article. I think this is the best thoughts and opinions. I will do something after reading it.