java script警告IE 8中的Unicode显示问题


java script Alerts Unicode display issue in IE 8

目前我正在开发基于symfony的大型应用程序。我在IE浏览器中显示java脚本警报中的unicode字符时遇到问题,只有firefox没有问题,工作正常

例如

alert("<?php echo __("English word to auto convert to other languages by symfony ")?>");

在IE 8版本中,当弹出警告时,我只能看到方框。

有人知道为什么会这样吗?

检查页面的编码。