大哥你不会全部用JAVA来实现一个网站吧?
建议参考YAHOO的设计!

解决方案 »

  1.   

    用Unicode,写一个类可以搞定的!
      

  2.   

    你Oracle里面用UTF8格式,JSP又指定UTF8编码。实现就很轻松了。
      

  3.   

    再继续好吗?有没人能给个例子,分不够可以加!(用jsp实现)
      

  4.   

    仅是建议:String str=new String(byte[] bytes, String charsetName);将你的charsetName设成变量,每次都去校验它的值,应该可以解决code转换的问题,但是中文和英文的差别,可能需要做一些硬编码的工作,我没有试过,祝好运关注中
    ================================================================CSDN 论坛助手 Ver 1.0 B0402提供下载。 改进了很多,功能完备!★  浏览帖子速度极快![建议系统使用ie5.5以上]。 ★  多种帖子实现界面。 
    ★  保存帖子到本地[html格式]★  监视您关注帖子的回复更新。
    ★  可以直接发贴、回复帖子★  采用XML接口,可以一次性显示4页帖子,同时支持自定义每次显示帖子数量。可以浏览历史记录! 
    ★  支持在线检测程序升级情况,可及时获得程序更新的信息。★★ 签名  ●  
         可以在您的每个帖子的后面自动加上一个自己设计的签名哟。Http://www.ChinaOK.net/csdn/csdn.zip
    Http://www.ChinaOK.net/csdn/csdn.rar
    Http://www.ChinaOK.net/csdn/csdn.exe    [自解压]
      

  5.   

    public static String unicodeToGB(String strIn) throws Exception {
        String strOut = null;
        if(strIn == null || (strIn.trim()).equals(""))
          return strIn;
        byte[] b = strIn.getBytes("GBK");
        strOut = new String(b,"ISO8859_1");
        return strOut;
      }  public static String GBToUnicode(String strIn) throws Exception {
        String strOut = null;
        if(strIn == null || (strIn.trim()).equals(""))return strIn;
        byte[] b = strIn.getBytes("ISO8859_1");
        strOut = new String(b,"GBK");
        return strOut;
      }
    中英转换,繁体类似,转换成相映的编码就可以了
      

  6.   

    public static String unicodeToGB(String strIn) throws Exception {
        String strOut = null;
        if(strIn == null || (strIn.trim()).equals(""))
          return strIn;
        byte[] b = strIn.getBytes("GBK");
        strOut = new String(b,"ISO8859_1");
        return strOut;
      }  public static String GBToUnicode(String strIn) throws Exception {
        String strOut = null;
        if(strIn == null || (strIn.trim()).equals(""))return strIn;
        byte[] b = strIn.getBytes("ISO8859_1");
        strOut = new String(b,"GBK");
        return strOut;
      }
    中英转换,繁体类似,转换成相映的编码就可以了
      

  7.   

    public static String unicodeToGB(String strIn) throws Exception {
        String strOut = null;
        if(strIn == null || (strIn.trim()).equals(""))
          return strIn;
        byte[] b = strIn.getBytes("GBK");
        strOut = new String(b,"ISO8859_1");
        return strOut;
      }