OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]
Re: [xml-dev] Quiz: How do you put a Euro sign in your data ifyour XML uses windows-1252 encoding and you use a numeric characterreference?

On Thu, 2013-02-28 at 23:00 +0000, Costello, Roger L. wrote:

> 	<?xml version="1.0" encoding="windows-1252"?>
> In the windows-1252 encoding scheme the Euro sign (€) is hex 80. 

> 	&#x80;43.00

No. Do not do this.

>     Numeric character references (such as &#x80;) 
>     are interpreted as Unicode characters – no matter 
>     what encoding you use for your document.

Right. That is because the numeric character references identify
codepoints, not input octet sequences.


Liam Quin - XML Activity Lead, W3C, http://www.w3.org/People/Quin/
Pictures from old books: http://fromoldbooks.org/
Ankh: irc.sorcery.net irc.gnome.org freenode/#xml

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 1993-2007 XML.org. This site is hosted by OASIS