Hi
My problem is that the charset in the meta tag is not recognized in the page generated from the function below.
I'm using Hebrew in the html page, in the original page with the same meta tag text displays from right to left as it should for charset=iso-8859-8. In the generated html the text is reversed.
function getPrintPage() {
var pp = window.open();
with (pp.document) {
open();
writeln("<html><head>");
writeln("<link rel='stylesheet' type='text/css' href='tlush.css'>");
writeln('<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-8"></meta>');
writeln("</head><BODY BGCOLOR='WHITE' TEXT='NAVY'>");
writeln("<P class=newpage>");
writeln("<Table Frame=Box Align='center'><TR><TD>");
writeln(document.getElementById('print1104').innerHTML);
writeln("</TD></TR></TABLE>");
writeln("</p></body></html>");
close();
}
pp.print();
}
Thanks for any help
Rambleon
My problem is that the charset in the meta tag is not recognized in the page generated from the function below.
I'm using Hebrew in the html page, in the original page with the same meta tag text displays from right to left as it should for charset=iso-8859-8. In the generated html the text is reversed.
function getPrintPage() {
var pp = window.open();
with (pp.document) {
open();
writeln("<html><head>");
writeln("<link rel='stylesheet' type='text/css' href='tlush.css'>");
writeln('<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-8"></meta>');
writeln("</head><BODY BGCOLOR='WHITE' TEXT='NAVY'>");
writeln("<P class=newpage>");
writeln("<Table Frame=Box Align='center'><TR><TD>");
writeln(document.getElementById('print1104').innerHTML);
writeln("</TD></TR></TABLE>");
writeln("</p></body></html>");
close();
}
pp.print();
}
Thanks for any help
Rambleon