new String(myString.getBytes("iso8859-1"),"gb2312");
或者是
new String(myString.getBytes("gb2312"),"iso8859-1");
我也记不起来了.

解决方案 »

  1.   

    我的在jsp页面中显示的,加上<%@page contentType="text/html;charset=gb2312" %>,就可以显示中文了。
      

  2.   

    to zhangbin_zhang(cat)
       new String(myString.getBytes("iso8859-1"),"gb2312");
       中的myString是怎么定义的?
    to  springgwn() 
       生成的图片中中文显示就是乱码。
    to gary_shi(Gary Shi)
       windows下。
      

  3.   

    真是不好意思!
    我的机器上显示不出中文的原因在于,我使用的编译器是Jikes。Jikes的路径不支持中文我开始是知道的,但生成的bytecode谁知道也不支持中文!
    不过还是感谢大家的热心!给分!