charset в Netscape
6 отговора
186 прегледа
charset в Netscape
index.html
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251">
<script language="JavaScript">
function ff1(){
top.toc.document.open();
top.toc.document.charset="windows-1251";
top.toc.charset="windows-1251";
top.toc.document.write("<html><head>");
top.toc.document.write("<meta http-equiv='Content-Type' content='text/html; charset=windows-1251'>");
top.toc.document.write("</head>");
top.toc.document.write("<body>");
top.toc.document.write("Кирилица");
top.toc.document.write("</body></html>");
top.toc.document.close();
}
</script>
</head>
<frameset cols="200,*" border=0 onload="ff1()">
<frame src="about:blank" name="toc">
<frame src="test.html" name="test">
</frameset>
</html>
test.html
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251">
</head>
<body>
Кирилица
</body>
</html>
Та значи проблема е че в левия фрейм (този който се прави от скрипта) кирилицата излиза така "???????????" а в десния (test.html) всичко е наред
В IE също няма проблем
Помагайте
Предварително балгодарвя!
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251">
<script language="JavaScript">
function ff1(){
top.toc.document.open();
top.toc.document.charset="windows-1251";
top.toc.charset="windows-1251";
top.toc.document.write("<html><head>");
top.toc.document.write("<meta http-equiv='Content-Type' content='text/html; charset=windows-1251'>");
top.toc.document.write("</head>");
top.toc.document.write("<body>");
top.toc.document.write("Кирилица");
top.toc.document.write("</body></html>");
top.toc.document.close();
}
</script>
</head>
<frameset cols="200,*" border=0 onload="ff1()">
<frame src="about:blank" name="toc">
<frame src="test.html" name="test">
</frameset>
</html>
test.html
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251">
</head>
<body>
Кирилица
</body>
</html>
Та значи проблема е че в левия фрейм (този който се прави от скрипта) кирилицата излиза така "???????????" а в десния (test.html) всичко е наред
В IE също няма проблем
Помагайте
Предварително балгодарвя!
Re: charset в Netscape
mi znachi 2 raboti...
1. kato pishesh text na kirilica s JS, parvo pravish cyr=escape('cyr_text'), sled koeto document.writeln(unescape(cyr));
2. NS4 raboti dobre s cyr, koyato se pishe dinamichno (s JS) edinstveno i samo ako:
a) izberesh View -> Character Set -> Cyrrilic (windows-1251)
b) sled tova izberesh izberesh View -> Character Set -> Set default character set
c) sled tova trebe da raboti kato pravish document.writeln(cyr)... t.e. da ti izliza kirilicata kato takava a ne kato ???????
p.s. Tva e nekuf bug, nema kak da go napraish inache...
Just a genius
[email protected]
[линк]
1. kato pishesh text na kirilica s JS, parvo pravish cyr=escape('cyr_text'), sled koeto document.writeln(unescape(cyr));
2. NS4 raboti dobre s cyr, koyato se pishe dinamichno (s JS) edinstveno i samo ako:
a) izberesh View -> Character Set -> Cyrrilic (windows-1251)
b) sled tova izberesh izberesh View -> Character Set -> Set default character set
c) sled tova trebe da raboti kato pravish document.writeln(cyr)... t.e. da ti izliza kirilicata kato takava a ne kato ???????
p.s. Tva e nekuf bug, nema kak da go napraish inache...
Just a genius
[линк]
Re: charset в Netscape
za da nqmash problemi ot toq sort
if(document.layers){self.close()}
:)
if(document.layers){self.close()}
:)
mnogo umno
aide da ne pochvam da izrejdam glupostite na nekoi drugi browseri
Just a genius
[email protected]
[линк]
Just a genius
[линк]
Re: NE STAVA !!!!
Probvah s preporuchania script:
<script>
cyr=escape('кирилица')
document.writeIn(unescape(cyr));
</script>
no netscape sedi i blei i nishto ne pishe.
Explorer si4ko si prai kat horata
DA GO IBA V NETSKEIPA !
<script>
cyr=escape('кирилица')
document.writeIn(unescape(cyr));
</script>
no netscape sedi i blei i nishto ne pishe.
Explorer si4ko si prai kat horata
DA GO IBA V NETSKEIPA !
Re: NE STAVA !!!!
pich, predi da psuvash si kupi 1 br. ochila s dioptri...
puk moje i 1-2 knijki da prochetesh...
<script>
cyr=escape('кирилица')
document.writeIn(unescape(cyr)); -> document.writeln (unescape(cyr));
</script>
tva chervenoto tam e malko L (l), a ne goliamo i (I)!!!



Just a genius
[email protected]
[линк]
puk moje i 1-2 knijki da prochetesh...
<script>
cyr=escape('кирилица')
document.writeIn(unescape(cyr)); -> document.writeln (unescape(cyr));
</script>
tva chervenoto tam e malko L (l), a ne goliamo i (I)!!!
Just a genius
[линк]