« Dynamically upgrade LiveCD packages | Home | Installing sound drivers for VirtualBox sound in Windows 7 »
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 | 153 Comments »

August 12th, 2026 at 20:34
ขอบคุณสำหรับเช็กลิสต์ก่อนสั่งซื้อ อ่านง่ายและนำไปใช้ตรวจสอบสินค้าได้จริงครับ
Have a look at my page: ตลับหมึกแท้สำหรับเครื่องพิมพ์ (https://gratisafhalen.be)
August 12th, 2026 at 20:47
เห็นหลายบ้านเริ่มเปลี่ยนมาใช้อุปกรณ์ลักษณะนี้มากขึ้น
ข้อมูลนี้จึงมีประโยชน์ทีเดียวครับ
Feel free to visit my page – ช่างติดตั้ง Digital Door Lock (https://Images.Google.is/url?q=https://mcdowell-mcknight-3.hubstack.net/hyudyung-chabch-n-kab-kuyaecchpratuu-aenanam-kab-l-khpratuu-ielkthr-niks)
August 12th, 2026 at 20:53
อธิบายเป็นลำดับดีครับ คนที่ไม่เคยมีพื้นฐานมาก่อนก็น่าจะเข้าใจได้ไม่ยาก
my web site: Smart Lock; http://bbs.wuhudj.com/space-uid-1636089.html,