出现如上图乱码问题的原因为服务器字体不匹配问题。
查看代码:
BufferedImage bi = new BufferedImage(width,height,BufferedImage.TYPE_3BYTE_BGR);
Font font = new Font("Times New Roman",Font.PLAIN,20);
Graphics2D g = bi.createGraphics();
缺少的字体为Times New Roman
以下为微软雅黑和Times New Roman字体