Compdigitec Labs

« | Home | »

Using (X)HTML entities in plain XML files

By admin | July 14, 2009

Update (2009-07-28): Here is a place that you can find accents for English characters.

If you try to use non-ASCII characters (e.g. accents) in directly in a Windows-1252 (ISO-8859-1) encoded web page directly without converting/transforming them into an entity, the web browser may get confused when the header of the web page is sent wrong or is misunderstood, resulting in garbled accents and even possibly mojibake.

The correct way to embed those into a web page are to use the corresponding (X)HTML entities such as ê for the ê accent. But if you try to load a string from a XML file into a web page (as many PHP scripts do nowadays), you will encounter a nasty error informing you that the entity was not defined (e.g. parser error : Entity ‘eacute’ not defined). To remedy this, in the XML file instead of the direct entity replace the ampersand (&) in the entity with its entity version. This may sound confusing at first but after a while it starts to make sense.

  • XML file display = ê
  • HTML source display = ê
  • Browser display = ê

If you found this article helpful or useful, please help Compdigitec spread the word. Don’t forget to subscribe to Compdigitec Labs for more useful or interesting articles!

If you found this article helpful or interesting, please help Compdigitec spread the word. Don’t forget to subscribe to Compdigitec Labs for more useful and interesting articles!

Topics: (X)HTML | 917 Comments »

917 Responses to “Using (X)HTML entities in plain XML files”

  1. iqos iluma Says:
    January 14th, 2026 at 16:04

    ทักทายครับ บทความนี้มีประโยชน์มาก กำลังหาข้อมูลเกี่ยวกับ iqos อยู่พอดี จะรอติดตามบทความต่อไปนะครับ

    Check out my page: iqos iluma

  2. terea บุหรี่ ราคา Says:
    January 14th, 2026 at 16:27

    บทความมีประโยชน์มากครับ

    Look into my site: terea บุหรี่ ราคา

  3. terea iqos Says:
    January 14th, 2026 at 17:17

    ติดตามผลงานอยู่นะครับ

    Review my page – terea iqos

  4. terea บุหรี่ ราคา Says:
    January 14th, 2026 at 17:18

    เนื้อหาแน่นมาก ขอบคุณที่แชร์

    Also visit my web blog terea บุหรี่ ราคา

  5. terea iqos ราคาส่ง Says:
    January 14th, 2026 at 18:25

    เป็นข้อมูลที่ดีมากครับ

    Feel free to visi my website terea iqos ราคาส่ง

  6. iqos iluma Says:
    January 14th, 2026 at 19:03

    สวัสดีครับ บทความนี้มีประโยชน์มาก
    กำลังหาข้อมูลเกี่ยวกับ iqos อยู่พอดี จะรอติดตามบทความต่อไปนะครับ

    Look into my web blog: iqos iluma

  7. terea iqos ราคา Says:
    January 14th, 2026 at 19:16

    เขียนได้น่าสนใจมากครับ

    Also visit my web page; terea iqos ราคา

  8. terea iqos Says:
    January 14th, 2026 at 20:21

    สวัสดีจ้า บทความนี้มีประโยชน์มาก ช่วยให้เข้าใจเรื่อง iqos มากขึ้น ขอบคุณที่แบ่งปันข้อมูลดีๆ ครับ

    Lookk into my page … terea iqos

  9. terea iqos ราคา Says:
    January 14th, 2026 at 20:32

    สุดยอดเลยครับสำหรับบทความนี้

    Also visit my page – terea iqos ราคา

  10. terea บุหรี่ ซื้อ ที่ไหน Says:
    January 14th, 2026 at 20:35

    ชอบบทความนี้มากครับ

    Look at my site … terea บุหรี่ ซื้อ ที่ไหน

  11. terea iqos Says:
    January 14th, 2026 at 20:43

    สวัสดีจ้า เขียนได้ดีมากเลยครับ ใครที่สนใจ iqaos ต้องมาอ่านตรงนี้เลย
    ขอบคุณที่แบ่งปันข้อมูลดีๆ ครับ

    Also visit my web sie terea iqos

  12. iqos Says:
    January 14th, 2026 at 20:53

    สวัสดีครับ เขียนได้ดีมากเลยครับ กำลังหาข้อมูลเกี่ยวกับ iqos อยู่พอดี เป็นกำลังใจให้นะครับ

  13. terea iqos ราคา Says:
    January 15th, 2026 at 04:43

    ขอบคุณสำหรับบทความดีๆ ครับ

    Review my page; terea iqos ราคา

  14. บุหรี่ terea ราคา Says:
    January 15th, 2026 at 05:06

    ชอบบทความนี้มากครับ

    Have a look at my website; บุหรี่ terea ราคา

  15. บุหรี่ terea Says:
    January 15th, 2026 at 05:23

    สุดยอดเลยครับสำหรับบทความนี้

    Feel free too viisit my site … บุหรี่ terea

  16. terea บุหรี่ Says:
    January 15th, 2026 at 05:40

    ชอบบทความนี้มากครับ

    Look at my blog post :: terea บุหรี่

  17. Robotics Says:
    January 15th, 2026 at 10:52

    Useful content for readers interested in ai next gen ethics ai sustainable ai and quantum ai
    as part of next generation innovation

Comments