Re: Creating global applications in Java

From: David Goldsmith (goldsmith@apple.com)
Date: Tue Nov 11 1997 - 16:13:17 EST


Kevin Bracey (kbracey@acorn.com) wrote:

>That's incorrect. It should override the default setting (in your Choices
>dialogue box, or wherever), but you should be able to override the setting
>for that individual page from an Encoding menu of some sort.

This doesn't match my understanding of the correct behavior. The Encoding
menu is to specify the encoding of HTML documents that don't have an
encoding specified. It is not to override the encoding of documents which
*do* have an encoding specified.

The order of precedence for encoding specifications is:

1. charset parameter in TEXT/HTML MIME header.
2. META tag in document itself.
3. charset parameter of anchor that was followed, if any.
4. User preference item (e.g., Encoding menu).

See RFC 2070, "Internationalization of the Hypertext Markup Language",
thought that document doesn't mention the position of "user preference"
in the ordering. However, this is the ordering I've seen recommended by
the authors of that document, and it's the ordering that Internet
Explorer and Netscape implement, at least on the Macintosh.

David Goldsmith
Architect
International, Text, and Graphics Department
Apple Computer, Inc.
goldsmith@apple.com



This archive was generated by hypermail 2.1.2 : Tue Jul 10 2001 - 17:20:38 EDT