請問用ajax抓取big5編碼的網頁會亂碼
[code]<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$.get("a.php", function(data) {
alert(data);
});
});
[/code]a.php[code]
<!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-Type" content="text/html; charset=big5" />
</head>
<body>
中文字
</body>
</html>
[/code]請問用ajax抓取big5編碼的網頁會亂碼
請問要怎麼解決呢 當然是... 改用 UTF-8 囉 good answer:L
頁:
[1]