Forum Moderators: open

Message Too Old, No Replies

Charset / Layers

Netscape problem with charset and layers

         

apons

6:51 am on Aug 23, 2002 (gmt 0)



The problem:

Whenever you write into a layer, you get charsets conflict on the page.

with (document.myLayer) {
document.open();
document.write("test");<-
document.close();
}

Suppose you have an anchor with an onMouseOver event that writes into a layer on the page; when you move the mouse over the anchor (event is fired and script executed) you get squares instead of normal characters.

Reported with version 4.75.0.6 & 4.78.0.25 (4.7x) of Netscape.

I suspect a conflict between charsets:
1 - the one sent by server in http header (UTF-8)
2 - the one set as default in the browser (whatever you want but UTF-8)

This doesn't occur when you set UTF-8 as default charset for Netscape. But I just can't tell customers to switch their default charset to UTF-8 whenever they see squares on the screen!
And they would have to turn it back to ISO-8859-1 whenever the charset set by http header is NOT UTF-8!

Any help greatly appreciated. Thanks in advance.

APS

starway

7:35 am on Aug 23, 2002 (gmt 0)

10+ Year Member



This is known problem (one of them), and I think there's no universal solution.
I heared once that if you load a new document into a layer, you have to specify a charset in it in order not to lose the chars of national encodings.
But it isn't applicable to your case...