开发者

How to show chinese html file in jQuery tabs

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜