简体   繁体   English

确认框未显示希伯来语

[英]Confirmation box didnt show hebrew

I build my project in asp.net and for one of my frm I write script with confermation box. 我在asp.net中构建我的项目,对于我的一个frm,我使用会议框编写脚本。

The function works great beside the hebrew msg. 该功能在希伯来语味精旁边非常有效。 ie and chrom showen "?" 即和铬显示“?” mark instead of the hebrew characters i wrote. 标记而不是我写的希伯来字符。

function ConfirmDeleteTeacher() {
    var confirm_value = document.createElement("INPUT");
    confirm_value.type = "hidden";
    confirm_value.name = "confirm_value";
    if (confirm("בלה בלה?")) {
        confirm_value.value = "Yes";
    } else {
        confirm_value.value = "No";
    }
    document.forms[0].appendChild(confirm_value);
}

This seems like an encoding issue. 这似乎是一个编码问题。 Try saving your document with a different encoding, I would suggest UTF-8. 尝试使用其他编码保存文档,建议使用UTF-8。

To do this in Visual Studio: Open the document, go to File -> Save as and in the dialog that opens, the Save button has an arrow with options. 在Visual Studio中执行以下操作:打开文档,转到“文件”->“另存为”,然后在打开的对话框中,“保存”按钮带有一个带有选项的箭头。 Choose "Save with encoding" and then choose the appropriate encoding. 选择“保存编码”,然后选择适当的编码。

Hope this helps 希望这可以帮助

Thanks but I sloved the problem by adding the configuration this definition 谢谢,但是我通过添加配置这个定义来解决这个问题

<system.web>
    <globalization requestEncoding="windows-1255"
    responseEncoding="windows-1255" />
</system.web>

now the hebrew is working :) 现在希伯来语正在工作:)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM