随笔分类 - JAVA WEB开发
摘要:JSP中乱码产生的原因是web容器(Tomcat)默认使用ISO-8859-1进行编码的,而我们可能使用的是UTF-8,GBK,GB2312等编码方式进行jsp编写的,因此需要一个转换器进行转换或者修改默认编码方式,这里我主要用转换器+过滤器完成自动转换功能.客户端脚本文件:View Code /* * name:getTransport * create XMLHttpRequest */ var xmlhttp=null; function getHttpRequest() { try { xmlhttp=new ActiveXObject('Msxml2.XMLHTTP...
阅读全文
摘要:View Code <?xml version="1.0" encoding="UTF-8"?><!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licens
阅读全文
摘要:JAVA HTTP通信转自:http://blog.sina.com.cn/s/blog_5dabcb7b0100hpho.htmlpackage cn.core.util;import java.io.BufferedReader;import java.io.DataOutputStream;import java.io.IOException;import java.io.InputStreamReader;import java.net.HttpURLConnection;import java.net.URL;import java.net.URLEncoder;public cla
阅读全文
摘要:JSON 字符串 与 java 对象的转换
阅读全文
浙公网安备 33010602011771号