开发者

UTF-8 and Javascript

I use Javascript to get data in a HTML pages define with a charset UTF8

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

my javascript method is load with a charset UTF8

<script type="text/javascript" charset="utf-8" src="../ressources/js/test.js"></script>

but i开发者_StackOverflow中文版 have a encode problem, when i get data with "innerHTML"

ex: salari�s

is there something I missed ?


The encoding of the files must be set to UTF8.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜