确认框未显示希伯来语 [英] Confirmation box didnt show hebrew

查看:92
本文介绍了确认框未显示希伯来语的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在asp.net中构建项目,并且为我的一个frm我编写了带有会议框的脚本.

I build my project in asp.net and for one of my frm I write script with confermation box.

该功能在希伯来语味精旁边非常有效.即和铬显示?"标记而不是我写的希伯来字符.

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);
}

推荐答案

谢谢,但我通过在配置中添加此定义来解决了这个问题

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 :)

这篇关于确认框未显示希伯来语的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆