tuyle
07-19-2002, 11:46 AM
Hello,
In my HTML page, I want to display a Japanese text, so I use CHARSET=SHIFT-JIS in META tag. The Japanese text is displayed OK
Then, I copy all HTML code, after page loading, I rewrite it, but it seems that NS4.x don't know how to display. The browser just display a string of "?????????????"
IE runs OK!
You can try HTML code below and help me to solve this problem
Thanks,
Tuy Le
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=shift_jis">
</head>
<script>
function load() {
var strPage = "<html>\n" +
"<head>\n" +
"<meta http-equiv=\"Content-Type\" content=\"text/html; charset=shift_jis\">\n" +
"</head>\n" +
"<body>\n" +
"データを読み込み中、お待ち_ださい...\n" +
"</body>\n" +
"</html>";
document.open("text/html", "replace");
document.write(strPage);
document.close();
}
</script>
<body bgcolor="#FFFFFF" onload="load()">
データを読み込み中、
</body>
</html>
In my HTML page, I want to display a Japanese text, so I use CHARSET=SHIFT-JIS in META tag. The Japanese text is displayed OK
Then, I copy all HTML code, after page loading, I rewrite it, but it seems that NS4.x don't know how to display. The browser just display a string of "?????????????"
IE runs OK!
You can try HTML code below and help me to solve this problem
Thanks,
Tuy Le
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=shift_jis">
</head>
<script>
function load() {
var strPage = "<html>\n" +
"<head>\n" +
"<meta http-equiv=\"Content-Type\" content=\"text/html; charset=shift_jis\">\n" +
"</head>\n" +
"<body>\n" +
"データを読み込み中、お待ち_ださい...\n" +
"</body>\n" +
"</html>";
document.open("text/html", "replace");
document.write(strPage);
document.close();
}
</script>
<body bgcolor="#FFFFFF" onload="load()">
データを読み込み中、
</body>
</html>