0
我在“function.js”这一功能:如何显示与js文件希腊语
test{
contents = '<html><head><title>Υπολογισμός Φ.Π.Α</title></head><body bgcolor="beige">' + "Το αρχικό ποσό που έδωσες είναι : " + axia + " euro." + '<br><br>' + "Το ποσό του Φ.Π.Α " + foros + "%" + " είναι : " +
teliko_apotelesma.toFixed(3) + " euro." + "<br> <br>" +
"Η τιμή του προϊόντος χωρίς το Φ.Π.Α " + foros + "%" + " είναι : " + posoxorisfpa.toFixed(2) + " euro." + '<a href="javascript:window.close()"><br><br><img src=image/Close1.png><br><br></img></a>'
+ '<hr size=5 width=100% color=red >' + '</body></html>'
options = "toolbar=1,status=1,menubar=1,scrollbars=1,resizable=1,width=600,height=300";
newwindow = window.open("", "mywindow", options);
newwindow.document.write(contents);
}
我调用此函数为的file1.html窗户是打开的,但显示此:
�� ������ ���� ��� ������ ����� : 110 euro.
正确显示这是在希腊语:
Το αρχικό ποσό που έδωσες είναι : 118 euro
如果我把功能test
在“file1.html”的,输出是正确的。
为什么我有这个问题?
[Mysql utf32 \ _unicode \ _ci和html charset utf-8使用的可能重复,但字符 出现](http://stackoverflow.com/questions/11432758/mysql-utf32-unicode-ci-and-html -charset-utf-8-used-but-character-appear) – Sebas 2013-02-21 15:54:23