W3C home > Mailing lists > Public > www-international@w3.org > July to September 2001

Re: Netscape 4.7x JavaScript

From: Chris Greening <bbst_chris@hotmail.com>
Date: Tue, 28 Aug 2001 09:03:46 +0100
To: <Renzo.Pecoraro@morganstanley.com>, <www-international@w3.org>
Message-ID: <OE18ZfJee12EiNMcAXs000013ba@hotmail.com>
There is a problem with Netscape 4.7, Javascript and Layer objects that may
be causing your propblem.

if you use any code like this in your javascript:

document.layers["layer_name"].document.open()....

Netscape forgets the character encoding specified in your document and
switches to whatever the user has chosen as their default character set.

It is very annoying.

The only workaround I know of is to do all dynamic page building on the
server.

----- Original Message -----
From: "Renzo Pecoraro" <Renzo.Pecoraro@morganstanley.com>
To: <www-international@w3.org>
Sent: Monday, August 27, 2001 6:13 PM
Subject: Netscape 4.7x JavaScript


> Hi -
>
> I am having a problem with a JavaScript that works fine under IE, but
> not under NS, so I am wondering how Netscape 4.7 handles JavaScript
> internally?
>
> Basically, the script generates an HTML page by constructing it from
> some arrays, some of which contain Shift_JIS encoded strings. It does
> this by first building a var containing the entire HTML string and then
> having that var be referenced in the SRC attribute of a FRAME element in
> another static HTML. It appears that somewhere along the line the
> Shift_JIS strings get corrupted, both under English and Japanese NT.
> MSIE 5.0 displays this correctly; I can only assume because it's fully
> Unicode internally, and NS isn't, but I'd like to confirm that this
> really is a Netscape bug.
>
> Has anyone seen this? I'd appreciate your help.
> Thanks!
>
> Renzo
>
>
Received on Tuesday, 28 August 2001 04:07:23 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 2 June 2009 19:16:57 GMT