Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
596 views
in Technique[技术] by (71.8m points)

utf 8 - jQuery doesn't display Hebrew

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" />

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>

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

Any help would be appreciated.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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.

Good Luck!


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...