Re: Can servlet know the timezone of the browser?

On Fri, 25 Jul 2003, Mark Davis wrote:

>> I believe that time zone should be part of the locale.  EG:
>> en-US#America/Los_Angeles

> People may differ in what they think of as a locale. We tend to take a
> narrow view, that it is principally items that differ according to
> language, thus excluding other items like preferred timezone,
> preferred currency, preferred character set, smoker/non-smoker

  I agree with you. In the very early days of Java, setting
one's locale to en_US (ko_KR) meant also setting one's timezone to
UTC -0800/-0700 (UTC +0900). Obviously, it doesn't make any sense
to tie locales to timezones.  As for associating MIME charsets with
languages, virtually all major web mail services (yahoo, hotmail) still
do that.  Therefore, it's impossible to compose emails in French
(Japanese) in MIME charset other than ISO-8859-1/Windows-1252
(Shift_JIS/EUC-JP). The solution is already there for them
(do all the processing internally in Unicode and let users
choose whichever MIME charsets to use for outgoing emails
as other i18n'ized email clients do) and I made a patch for IMP
(a widely used web mail program at schools)

  When Mark's (and my) view of locale is taken, 'KR' in ko_KR and 'CA' in
fr_CA are primarily meant to distinguish ko_KR/fr_CA from ko_KP/fr_FR(fr_CH).


  Jungshik

Received on Saturday, 26 July 2003 02:27:36 UTC