<head><meta http-equiv="Content-Type" content="text/html; charset=gb2312" /></head> 在html的head部分加入以上段落后就可以显示中文了。