Extjs4中的特殊字符?
如何在 Extjs4 中使用 ČĆŠĐŽ 等特殊字符。我尝试过添加元 utf-8...,还尝试过!DOCTYPE html5 和 XHTML 1.0 Transitional。 sencha 网页上的首选 index.html 是:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title id='title'>HTML Page setup Tutorial</title>
<link rel="stylesheet" type="text/css" href="../../resources/css/ext-all.css" />
<script type="text/javascript" src="../../adapter/ext/ext-base.js"></script>
<script type="text/javascript" src="../../ext-all-debug.js"></script>
</head>
<body></body>
</html>
How to get special characters like ČĆŠĐŽ working in Extjs4. I have tried adding meta utf-8..., also tried with !DOCTYPE html5, and XHTML 1.0 Transitional. Prefered index.html on sencha web page is :
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title id='title'>HTML Page setup Tutorial</title>
<link rel="stylesheet" type="text/css" href="../../resources/css/ext-all.css" />
<script type="text/javascript" src="../../adapter/ext/ext-base.js"></script>
<script type="text/javascript" src="../../ext-all-debug.js"></script>
</head>
<body></body>
</html>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我的错!! ,没有编码为utf,notepad++中默认为ANSI,不需要META或DOCTYPE,只需在编辑器中编码...谢谢!
my fault!! , didnt encode to utf, default to ANSI in notepad++, no need for META or DOCTYPE, just encode in editor... Thanks!