Re: £ converted into £,   converted into ~

Benjamin Hawkes-Lewis <[email protected]>
Newsgroups gmane.comp.web.amaya.general
Message-ID <[email protected]>
John Stumbles wrote:

> Is Amaya supposed to do this (is the &escape; syntax now deprecated -
> I'm a bit out of touch with current HTML standards in which case how
> should I get pound signs and non-breaking spaces that render properly on
> a web browser?

The &escape; syntax is not deprecated:

http://www.w3.org/TR/REC-html40/charset.html#h-5.3

I suppose Amaya may be saving the document with a character encoding 
that includes those characters and where they do not need to be escaped.

Subject to font support, you get special characters to render properly 
in HTML by doing /all/ of the following:

1. Saving or generating HTML in a given character set (commonly 
ISO-8859-1, but ideally UTF-8 without a Byte Order Mark, since that 
includes all unicode characters and means you only need to escape & < > 
' and ", which have a special meaning as HTML syntax).

2. Having your HTML document declare its character set with a HTTP 
header equivalent in a META element:

http://www.w3.org/TR/REC-html40/charset.html#h-5.2.2

3. Most importantly, if the document is being served by a webserver, you 
must ensure your server declares the character set of the HTML document 
with a real HTTP content-type header when it serves it:

http://www.w3.org/International/O-HTTP-charset

--
Benjamin Hawkes-Lewis
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.