When I tried to download Japanese_1.tsv
, it turned out to be _1.tsv
. URL encoding is required to download in Japanese
Example of embedding in Spark response header
Spark.res.header("Content-disposition", "attachment; filename=Japanese_1.tsv")
You need to encode this and embed it
Spark.res.header("Content-disposition", "attachment; filename=" + URLEncoder.encode("Japanese_1.tsv", "UTF-8"))
Recommended Posts