其他的都正常
CategoryURLGenerator generator = new StandardCategoryURLGenerator(
"rjk.do?method=showPoint&month="+request.getParameter("m"));
这个是加入节点链接,生成的连接中的中文是乱码,
response.setContentType("text/html");
response.setCharacterEncoding("UTF-8");加了这个也没效果
CategoryURLGenerator generator = new StandardCategoryURLGenerator(
"rjk.do?method=showPoint&month="+request.getParameter("m"));
这个是加入节点链接,生成的连接中的中文是乱码,
response.setContentType("text/html");
response.setCharacterEncoding("UTF-8");加了这个也没效果
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);//设置分类中文
java.net.URLDecoder.decode
试一下
String str = new String("你的内容".getBytes,"你的编码");