肯定要你自己用api设定编码的,而且,标题和内容的编码都不同。

解决方案 »

  1.   

    写一个bean:
    package characterpk;
    public class isotogb
    {
    private String str;
            {
            str=null;
            }
    public String convert(String s) 
    {
    this.str=s;
    if (str.trim()=="")
                            {
                            return null;
                            }
                        try 
                            {
                            byte[] bytesStr=str.getBytes("ISO-8859-1");
                            return new String(bytesStr,"GB2312"); 
                            }
    catch(Exception ex)
    {
    return str ;
    }
    }
    }