Skip to content

设置attname 出现中文乱码 #616

Open
@J-TIGGER

Description

@J-TIGGER

设置attname 如下:
DownloadUrl url = new DownloadUrl(domain, Boolean.FALSE, fileBase.getKey());
String fileName = "学习.3.0.docx"
String attname = URLEncoder.encode(fileName, "utf-8").replace("+", "%20");
url.setAttname(attname);

使用版本如下:

com.qiniu
qiniu-java-sdk
7.18.0

问题描述:
已经设置编码格式,但是下载文件的时候仍然出现文件名乱码的行为。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions