hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Oleg Kalnichevski (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (HTTPCLIENT-1783) upload file with Chinese name
Date Sun, 09 Oct 2016 16:15:20 GMT

     [ https://issues.apache.org/jira/browse/HTTPCLIENT-1783?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Oleg Kalnichevski resolved HTTPCLIENT-1783.
-------------------------------------------
    Resolution: Not A Problem

MIME headers are not supposed to contain non-ASCII characters. One must use so called browser
compatibility mode in order to force the use of non-standard character encoding

http://hc.apache.org/httpcomponents-client-4.5.x/httpmime/apidocs/org/apache/http/entity/mime/MultipartEntityBuilder.html#setMode(org.apache.http.entity.mime.HttpMultipartMode)

Oleg 

> upload file with Chinese name
> -----------------------------
>
>                 Key: HTTPCLIENT-1783
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1783
>             Project: HttpComponents HttpClient
>          Issue Type: Improvement
>          Components: HttpClient (classic)
>    Affects Versions: 4.5.1
>            Reporter: 张恒强
>              Labels: ChineseCharacters
>
> I use http client(4.5.1) to upload file,when the name of file contains Chinese character,server
side can not get the file. but i test the interface of uploading file with Postman, everything
is ok,even the name of file contains Chinese character. how can i resovle this problem? very
thanks!



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org


Mime
View raw message