How to set new value for document.characterSet in Netscape

Firefox, Thunderbird, SeaMonkey, Camino, Mozilla, Netscape 6/7/8/9, and all Gecko-based browsers discussion and support forum.
(MozInfo701, Netscape Browser Archive)

Moderators: Antony, Edward, profman, Ramona

How to set new value for document.characterSet in Netscape

Postby Arunkumar » Tue 03 Jan, 2006 5:53 am

Hi,

Iam developing a multi-lingual site, for that i need to modify the charset according to the language selected.

The following code works fine in IE but not in Netscape navigator (7.1v)


function getLanguage(str){

if(str=="english")
document.charset="iso-8859-1";
else{
document.charset="GB2312";
}

How to make it in Netscape.

Thanx,
Arun
UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; en) Opera 8.50
Arunkumar
new member
new member
 
Posts: 1
Joined: Tue 03 Jan, 2006 5:45 am

Return to Firefox, SeaMonkey and Netscape

Who is online

Registered users: Google [Bot]