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 | 355 Comments »

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

  1. ร้านขายพวงหรีดกระดาษ Says:
    November 5th, 2025 at 02:41

    ขอบคุณสำหรับข้อมูลดีๆนะครับ,

    ตอนนี้ผมก็สนใจเรื่องนี้อยู่เลย
    ร้านขายดอกไม้ใกล้บ้านราคาประหยัด
    และก็เจอเว็บที่น่าสนใจมากครับ!

    ราคาถูกกว่าที่อื่นแถมจัดสวยมาก
    ใครชอบเซอร์ไพรส์คนพิเศษต้องลองดูครับ.

    ลองเข้าไปดูได้ที่นี่ ร้านดอกไม้ราคาถูกใกล้ฉัน.

    รับรองไม่ผิดหวังแน่นอน

    Feel free to visit my web-site: ร้านขายพวงหรีดกระดาษ

  2. Cmosa Says:
    November 5th, 2025 at 02:47

    อ่านแล้วได้ไอเดียเพียบเลย,
    ผมเองก็กำลังมองหาอยู่เหมือนกัน
    บริการจัดช่อดอกไม้ราคาถูกในพื้นที่ของผม
    และก็เจอเว็บที่น่าสนใจมากครับ!

    มีให้เลือกหลายแบบตามโอกาส
    เหมาะกับคนที่อยากได้ของขวัญราคาย่อมเยา.

    ลองเข้าไปดูได้ที่นี่ ร้านดอกไม้ราคาถูกใกล้ฉัน.

    ผมใช้บริการแล้วประทับใจสุดๆ

    my webpagbe … Cmosa

  3. Stephen Says:
    November 5th, 2025 at 03:01

    บทความนี้ดีมากเลยครับ,
    เมื่อเร็วๆนี้ผมลองค้นหา

    ร้านขายดอกไม้ใกล้บ้านราคาประหยัด
    และก็เจอเว็บที่น่าสนใจมากครับ!

    เขามีดอกไม้สดใหม่ทุกวัน
    เหมาะกับคนที่อยากได้ของขวัญราคาย่อมเยา.

    ลองเข้าไปดูได้ที่นี่
    ร้านดอกไม้ใกล้ฉันราคาถูก.

    รับรองไม่ผิดหวังแน่นอน

    My website Stephen

  4. Cmosa Says:
    November 5th, 2025 at 03:32

    ขอบคุณสำหรับข้อมูลดีๆนะครับ,

    ตอนนี้ผมก็สนใจเรื่องนี้อยู่เลย
    บริการจัดช่อดอกไม้ราคาถูกในพื้นที่ของผม
    และก็เจอเว็บที่น่าสนใจมากครับ!

    บริการดีมาก ส่งไวจริง

    เหมาะกับคนที่อยากได้ของขวัญราคาย่อมเยา.

    ลองเข้าไปดูได้ที่นี่
    บริการจัดดอกไม้ใกล้คุณราคาดีสุด.

    ผมใช้บริการแล้วประทับใจสุดๆ

    My web page :: Cmosa

  5. https://oliviath.com/จัดดอกไม้งานขาว-ดำ/ Says:
    November 5th, 2025 at 05:20

    ชอบแนวคิดที่แชร์ไว้ในบทความนี้ครับ ถ้าใครกำลังมองหาผู้ให้บริการตกแต่งงานศพ ผมแนะนำลองดูร้านที่มีผลงานจริงและรีวิวดี
    ๆ ครับ

    My web page – https://oliviath.com/จัดดอกไม้งานขาว-ดำ/

Comments