转码
package com.bjbg.util;import java.io.PrintStream;public class EncodeBean
{    public EncodeBean()
    {
    }    public static String changeCode(String s)
    {
        String s1 = null;
        try
        {
            if(s == null)
                return null;
            s1 = new String(s.getBytes("ISO8859_1"), "GB2312");
        }
        catch(Exception exception)
        {
            System.out.println("Exception in changeCode: " + exception);
        }
        return s1;
    }
    public static String canCode(String s)
    {
        String s1 = null;
        try
        {
            if(s == null)
                return null;
            s1 = new String(s.getBytes("GB2312"), "ISO8859_1");
        }
        catch(Exception exception)
        {
            System.out.println("Exception in changeCode: " + exception);
        }
        return s1;
    }}
使用上面的BEAN
<%datas="????????????"%>
<%=EncodeBean.changeCode(datas)%>