开发者

How to show chinese html file in jQuery tabs

开发者 https://www.devze.com 2023-03-20 11:48 出处:网络
I used jQuery tabs widget in my page with ajax mode, something like <li><a href=\"changelog/web.html\" title=\"web\">WEB</a></li>

I used jQuery tabs widget in my page with ajax mode, something like

<li><a href="changelog/web.html" title="web">WEB</a></li>

changelog/web.html is already declared charset as gb2312 in its tag and it can be shown normally in iframe. But in target div of jQuery tabs, all the chinese characters in web.html are unreadable code. I've already set "contentType: "text/html; charset=gb2312" in ajaxOptions for jQuery tab, but it still not wor开发者_StackOverflowk.

so what can I do now? Thanks a lot


I've got the problem some days ago. The web.html has wrong encode. I re-create a copy of the file with utf-8 then it works well.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号