kkFileView icon indicating copy to clipboard operation
kkFileView copied to clipboard

关于系统编码问题导致的缓存文件404问题

Open YYYet opened this issue 1 year ago • 0 comments

cn/keking/service/impl/OfficeFilePreviewImpl.java:146

cacheFileName = URLEncoder.encode(cacheFileName).replaceAll("\+", "%20");

此处的encode会获取字符串编码,与jar包运行环境编码有关,若为gbk编码经过url编码后则部分格式的文件会报404 我的做法是指定编码 -Dfile.encoding=utf-8

YYYet avatar Sep 11 '23 09:09 YYYet