我现在在模拟器中调用了htm页面,页面中显示的都很正常,但是在alert()提示信息的时候却出现了乱码的问题,
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset="utf-8">
<meta content="minimum-scale=1.0, width=device-width, maximum-scale=1.0, user-scalable=no" name="viewport" /> 
function chkName(){
var username = document.getElementById('newName').value;
var userpass = document.getElementById('newPwd').value;
var url = window.location.toString();
if(username.length == 0 || username == "用户名/用户ID"){
//$(".loginPrompt").show();
//$(".loginPrompt span").text("请输入用户名!");
alert("请输入用户名!");
return false;
}
. . . . . . . .这段代码是htm页面的,我把其放入到android模拟器重运行,alert()的提示框弹出的信息就是乱码,当然在网页中alert()出的也是乱码。请问有人知道怎么回事吗?