在服务器上发现乱码,本地正常,然后,直接tomcatUTF-8了
<Connector port="8080" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" URIEncoding="UTF-8"/>
ps:windows下默认是GBK;Linux下默认是UTF-8。read.readLine():读出来就是乱码,原来以为是字符编码问题,转了字符编码,newInputStreamReader(is,"utf-8"),转成服务器默认的编码格式就正确了