PhoneGap中文网
标题:
在phoneGap的index.html中加个汉字“你好”,请问为什么汉字会乱码?
[打印本页]
作者:
sunck_hf
时间:
2015-3-12 11:40
标题:
在phoneGap的index.html中加个汉字“你好”,请问为什么汉字会乱码?
e:\乱码.jpg
<html>
<head>
<meta charset="utf-8" />
<meta name="format-detection" content="telephone=no" />
<meta name="msapplication-tap-highlight" content="no" />
<!-- WARNING: for iOS 7, remove the width=device-width and height=device-height attributes. See https://issues.apache.org/jira/browse/CB-4323 -->
<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, height=device-height, target-densitydpi=device-dpi" />
<link rel="stylesheet" type="text/css" href="css/index.css" />
<title>Hello World</title>
</head>
<body>
<div class="app">
<h1>PhoneGap你好</h1>
<div id="deviceready" class="blink">
<p class="event listening">Connecting to Device</p>
<p class="event received">Device is Ready</p>
</div>
</div>
<script type="text/javascript" src="cordova.js"></script>
<script type="text/javascript" src="js/index.js"></script>
<script type="text/javascript">
app.initialize();
</script>
</body>
</html>
复制代码
作者:
admin
时间:
2015-3-12 12:36
1. css 编码 css文件编码
2.html文件编码
3.html中设置字符编码
4.还有js编码 js文件编码
全部统一一下 如果编码统一以后 还不行 新建文件代码复制过去再试试
作者:
跨平台移动开发
时间:
2015-3-13 20:11
编码不对 编码不对 编码不对
欢迎光临 PhoneGap中文网 (http://bbs.phonegap100.com/)
Powered by Discuz! X3.2