你的位置:首页 > 软件开发 > Java > poi excel export 乱码

poi excel export 乱码

发布时间:2016-04-22 18:00:02
1. Question Description:  ~前端是get方式提交的,参数含有中文“测试”   ~导出的excel,文件名正常, 而标题乱码 2. Solution: ~断点发现, 参数接收就是乱码 ...

1. Question Description:

  ~前端是get方式提交的,参数含有中文“测试”   

  ~导出的excel,文件名正常, 而标题乱码

 

2. Solution:

    ~断点发现, 参数接收就是乱码,

    ~String excelTitle = new String(objectgroupname.getBytes("ISO-8859-1"), "utf-8");

    ~HSSFSheet sheet = book.createSheet(excelTitle);//sheet的名字

    ~response.reset();

 

海外公司注册、海外银行开户、跨境平台代入驻、VAT、EPR等知识和在线办理:https://www.xlkjsw.com

原标题:poi excel export 乱码

关键词:excel

*特别声明:以上内容来自于网络收集,著作权属原作者所有,如有侵权,请联系我们: admin#shaoqun.com (#换成@)。

可能感兴趣文章

我的浏览记录