Scalatra文件下载时中文乱码

可以采用Servlet平台的解决方法进行解决:

Ok(file.get, Map(
          "Content-Type"        -> (file.contentType.getOrElse("application/octet-stream")),
          "Content-Disposition" -> ("attachment; filename=" + new String(file.name.getBytes(), "iso8859-1"))
        ))
原文地址:https://www.cnblogs.com/yshyee/p/7248501.html