其他的都正常
CategoryURLGenerator generator = new StandardCategoryURLGenerator(
   "rjk.do?method=showPoint&month="+request.getParameter("m"));
这个是加入节点链接,生成的连接中的中文是乱码,
response.setContentType("text/html");
   response.setCharacterEncoding("UTF-8");加了这个也没效果

解决方案 »

  1.   

    中文字体也已经设置了
    chart.setTextAntiAlias(false);
       chart.setBackgroundPaint(Color.WHITE);
       // 设置图标题的字体重新设置title
       chart.getTitle().setFont(new Font("宋体", Font.BOLD, 20));
      
       Font font = new Font("宋体", Font.BOLD, 15);
      
       // 设置面板字体   
       Font labelFont = new Font("SansSerif", Font.TRUETYPE_FONT, 12);   chart.setBackgroundPaint(Color.WHITE);
       chart.getLegend().setItemFont(font);//设置分类中文
      

  2.   

    失误,上面说的是Jfreechart里面。java.net.URLEncoder.encode 
    java.net.URLDecoder.decode
    试一下
      

  3.   

    应该是你的request.getParameter("m")得过来的编码和你正在使用的不一致,你可以先对其进行转码再使用
    String str = new String("你的内容".getBytes,"你的编码");