Skip to content

upload file with filename contain chinese character,request can‘t encode it #5982

@lee20220110

Description

@lee20220110

Expected behavior

when i send request, chinese character can be encode with utf-8,so i can see this filename is correct,but now it can't be encoded

Actual behavior

image

POST data:
-----------------------------7d159c1302d0y0
Content-Disposition: form-data; name="file"; filename="????????????????.docx"
Content-Type: application/msword
Content-Transfer-Encoding: binary

<actual file content, not shown here>
-----------------------------7d159c1302d0y0--

[no cookies]

i send a file with chinese character filename ,but i got filename by ????

Steps to reproduce the problem

  1. write request parameter
  2. choose method by post
  3. send request

JMeter Version

5.5

Java Version

java 17.0.7 2023-04-18 LTS

OS Version

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions