Next in thread → Next in month →

Re: [xml-dev] Quiz: How do you put a Euro sign in your data if your XML uses windows-1252 encoding and you use a numeric character reference?

From
Liam R E Quin <>
To
"Costello, Roger L." <>
Date
2013-03-01T00:23:30Z
ID
<>
Thread
Re: [xml-dev] Quiz: How do you put a Euro sign in your data if your XML uses windows-1252 encoding and you use a numeric character reference?
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


-- 
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
Next in thread → Next in month →