美文网首页
2020-12-21

2020-12-21

作者: LoWang | 来源:发表于2020-12-21 14:10 被阅读0次

    导出csv格式的时候,需要加上utf8Bom文件头,避免office乱码

                byte[] uft8bom = { (byte) 0xef, (byte) 0xbb, (byte) 0xbf };
                out.write(uft8bom);
    

    相关文章

      网友评论

          本文标题:2020-12-21

          本文链接:https://www.haomeiwen.com/subject/xtprnktx.html