中文显示问题一直是个大问题,网上的一些论坛里有相应的解决办法,这里也有两个你看看吧!
cnjsp里的一位朋友告诉我的: 
1
public String getStr(String originStr) throws IOException 

String Result; 
Result = new String(originStr.getBytes("iso-8859-1"),"GB2312"); 
return Result; 
}
2
import java.io.*;public class TransFormat{public static String unicodeToGB(String strIn){
byte[] b;
String strOut = null;
if(strIn == null || (strIn.trim()).equals(""))
return strIn;
try{
b = strIn.getBytes("GBK");
strOut = new String(b,"ISO8859_1");
}catch(UnsupportedEncodingException e){}
return strOut; 
}public static String GBToUnicode(String strIn){
     String strOut = null;
if(strIn == null || (strIn.trim()).equals(""))return strIn;
     try{
       byte[] b = strIn.getBytes("ISO8859_1");
       strOut = new String(b,"GBK");
     }catch(Exception e){}
    return strOut;
}
}

解决方案 »

  1.   

    readLine()           
      Deprecated. This method does not properly convert bytes to characters. As of JDK 1.1, the preferred way to read lines of text is via the BufferedReader.readLine() method. Programs that use the DataInputStream class to read lines can be converted to use the BufferedReader class by replacing code of the form:      DataInputStream d = new DataInputStream(in);
    with:
          BufferedReader d
              = new BufferedReader(new InputStreamReader(in));你的改成:
    <%@ page contentType="text/html;charset=GB2312" %>
    <%@ page import="java.io.*" %>
    <%@ page import="java.net.*" %>
    <%
    URL fileurl;
    String url = "http://www.cnscud.com";
    fileurl=new URL(url);
    InputStream filecon =null;
    //DataInputStream filedata = null;
    filecon = fileurl.openStream();BufferedReader d
              = new BufferedReader(new InputStreamReader(filecon));DataInputStream filedata = new DataInputStream(filecon);
    String fileline;
    while ((fileline = d.readLine()) != null)
    {
      out.println(fileline);
    }
    %>