SpringBoot 解决从后端将文件名传回前端的中文乱码问题

filename = new String(filename.getBytes("UTF-8"),"iso-8859-1");

将filename进行编码转换之后就能正常显示了。

你可能感兴趣的:(SpringBoot)