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

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

  1. ขายไวน์ออนไลน์ Says:
    November 18th, 2025 at 01:56

    Can’t get enough of good wine.Doesn’t matter
    if it’s dry or sweet, it’s the perfect way to relax.
    Anyone else here love wine? #WineTasting

    Feel free to surf to myy web site – ขายไวน์ออนไลน์

  2. จัดดอกไม้หน้าหีบศพ Says:
    November 18th, 2025 at 05:07

    อ่านแล้วเข้าใจเรื่องดอกไม้งานศพได้ดีขึ้น
    กำลังค้นหาข้อมูลเรื่องนี้อยู่พอดี ถือว่าเจอบทความดีๆ เลย
    จะบอกต่อให้เพื่อนๆ ที่ต้องการเลือกดอกไม้ไปงานศพอ่านด้วย

    my blog post จัดดอกไม้หน้าหีบศพ

  3. พวงหรีด Says:
    November 18th, 2025 at 05:36

    ขอบคุณสำหรับบทความดี ๆ เกี่ยวกับงานศพ
    พวงหรีดที่เหมาะสมช่วยแสดงความอาลัยได้อย่างสุภาพ
    ผมเคยใช้บริการพวงหรีดออนไลน์ ซึ่งทั้งสะดวกและตรงเวลา
    แนะนำสำหรับใครที่กำลังมองหาพวงหรีดส่งด่วนครับ

  4. บริการรับจัดงานศพ Says:
    November 18th, 2025 at 06:33

    บทความนี้เกี่ยวกับดอกไม้งานศพ มีสาระมาก

    โดยส่วนตัวเพิ่งจัดงานศพให้ผู้ใหญ่ในบ้าน การเลือกช่อดอกไม้เลยเป็นเรื่องที่ต้องใส่ใจ
    จะเก็บข้อมูลนี้ไว้ใช้แน่นอน
    ขอบคุณอีกครั้งครับ/ค่ะ

    Take a look at my blog บริการรับจัดงานศพ

  5. ซื้อไวน์ ยก ลัง ที่ไหน Says:
    November 18th, 2025 at 07:41

    Thanks for any other wonderful article. Where else could anybody get that type of information in succh an ideal
    approach of writing? I’ve a presentaion subsequent week, and I am at tthe look for
    such information.

    Also visit my blog post :: ซื้อไวน์ ยก ลัง ที่ไหน

  6. Everette Says:
    November 18th, 2025 at 08:43

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

    ใครที่กำลังเตรียมตัวจัดงานศพให้คนสำคัญควรอ่านจริงๆ

    Take a look at my website – Everette

  7. สั่งไวน์ออนไลน์ราคาถูก Says:
    November 18th, 2025 at 08:49

    Wonderful beat ! I would like to apprentice while you amend your web site, how could i subscribe for
    a blokg website? The account aided me a acceptable
    deal. I had bern a little bit acquainted of this your broadcast offered bright clear concept

    Feel free to surf to myy page – สั่งไวน์ออนไลน์ราคาถูก

  8. จัดดอกไม้งานขาว ดํา ใกล้ฉัน Says:
    November 18th, 2025 at 09:14

    ขอบคุณสำหรับข้อมูลเกี่ยวกับดอกไม้งานศพที่ละเอียด
    กำลังค้นหาข้อมูลเรื่องนี้อยู่พอดี ถือว่าเจอบทความดีๆ
    เลย
    ใครที่กำลังเตรียมตัวจัดงานศพให้คนสำคัญควรอ่านจริงๆ

    My blog pst จัดดอกไม้งานขาว ดํา ใกล้ฉัน

  9. แพ็กเกจรับจัดงานศพ Says:
    November 18th, 2025 at 14:26

    อ่านแล้วเข้าใจเรื่องดอกไม้งานศพได้ดีขึ้น

    โดยส่วนตัวเพิ่งเจอเหตุการณ์สูญเสีย การเลือกช่อดอกไม้เลยเป็นเรื่องที่ต้องใส่ใจ

    ใครที่กำลังเตรียมตัวจัดงานศพให้คนสำคัญควรอ่านจริงๆ

    Alsso visit my homepage – แพ็กเกจรับจัดงานศพ

  10. ช่อดอกไม้งานศพ Says:
    November 18th, 2025 at 16:05

    อ่านแล้วเข้าใจเรื่องดอกไม้งานศพได้ดีขึ้น
    โดยส่วนตัวเพิ่งมีญาติจากไป การเลือกพวงหรีดเลยเป็นเรื่องที่ต้องใส่ใจ

    จะเก็บข้อมูลนี้ไว้ใช้แน่นอน ขอบคุณอีกครั้งครับ/ค่ะ

    Also visit my website :: ช่อดอกไม้งานศพ

  11. แพ็กเกจจัดงานศพ Says:
    November 18th, 2025 at 17:39

    บทความนี้เกี่ยวกับพวงหรีดดอกไม้ มีสาระมาก
    กำลังค้นหาข้อมูลเรื่องนี้อยู่พอดี ถือว่าเจอบทความดีๆ เลย
    จะบอกต่อให้เพื่อนๆ ที่ต้องการเลือกดอกไม้ไปงานศพอ่านด้วย

    Also visit my web-site แพ็กเกจจัดงานศพ

  12. แพ็คเกจ วัดบางเตย Says:
    November 18th, 2025 at 17:47

    บทความนี้เกี่ยวกับการจัดดอกไม้งานศพ เป็นประโยชน์สุดๆ

    โดยส่วนตัวเพิ่งเจอเหตุการณ์สูญเสีย การเลือกดอกไม้งานศพเลยเป็นเรื่องที่ต้องใส่ใจ

    ใครที่กำลังเตรียมตัวจัดงานศพให้คนสำคัญควรอ่านจริงๆ

    Look into my webpage: แพ็คเกจ วัดบางเตย

  13. สั่งไวน์ delivery Says:
    November 19th, 2025 at 09:41

    Hi there to every body,it’s my first viksit of this
    weblog; thjis web site carries remarkable and really fine material in support of readers.

    Here is my blog; สั่งไวน์ delivery

  14. ขายไวน์ออนไลน์ Says:
    November 19th, 2025 at 10:13

    With havin so much content and articles
    do you ever run into any problems of plagorismm or copyright violation? My site has a lot of exclusive content I’ve either written myself or outsourced but itt seems
    a llot of it is popping it up all over the internet without my permission. Do you know any
    techniques to help stop content from being stolen? I’d really appreciate it.

    Feel free to surf to my web-site: ขายไวน์ออนไลน์

Comments