jQuery不显示希伯来语 [英] jQuery doesn't display Hebrew
问题描述
我正在使用jQuery验证表单.
我在html的头上:<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
I am using jQuery to validate a form.
I have at my html's head: <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
我的脚本上有utf-8:
I have utf-8 on my scripts:
<script type="text/javascript" src="http://code.jquery.com/jquery-latest.js" charset="utf-8"></script>
<script type="text/javascript" src="validate.js" charset="utf-8"></script>
我的html页面显示希伯来语就很好,只要它不是jQuery代码即可. 通过jQuery打印的任何希伯来字符(通过validate.js中的脚本)将输出为:
My html page shows Hebrew just fine as long as it's not though the jQuery code. Any Hebrew character printed trough the jQuery (through the script in validate.js) prints out as: ����
任何帮助将不胜感激.
推荐答案
使用记事本打开所有html,css,js(与该项目相关的所有客户端文件),并以utf-8编码保存.请注意,这可能会略微改变希伯来文字和内容.之后,您应该会看到希伯来语.
Open all your html, css, js (all client files that relevant to this project) using notepad and save them with utf-8 encoding. Notice that this might change the hebrew text and the content a little. After that you should see hebrew.
祝你好运!
这篇关于jQuery不显示希伯来语的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!