[ 
https://issues.apache.org/jira/browse/HTTPCLIENT-293?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12537333
 ] 

Mohammad Rezaei commented on HTTPCLIENT-293:
--------------------------------------------

Ortwin, I think the RFC is worded strangely. It is certainly true that Section 
2.3 says US-ASCII only, but it seems like that section is outdated. 

In Section 2, there is a very large note that reads:

NOTE ON PARAMETER VALUE LENGHTS: A short (length <= 78 characters)
   parameter value containing only non-`tspecials' characters SHOULD be
   represented as a single `token'.  A short parameter value containing
   only ASCII characters, but including `tspecials' characters, SHOULD
   be represented as `quoted-string'.  Parameter values longer than 78
   characters, or which contain non-ASCII characters, MUST be encoded as
   specified in [RFC 2184].

Looking at the types of parameters, 4 of them are dates and one is an integer. 
The only one that's a string is the filename, so the note above must refer to 
it. RFC 2184 describes how to encode the non-ASCII case. Interestingly, it 
looks IE does not follow RFC 2184. 

Section 2.3 refers to RFC 2045, which is older than RFC 2184.

Overall, I'd say the RFC is unclear on this issue.

Thanks
Moh



> Provide support for non-ASCII charsets in the multipart disposition-content 
> header
> ----------------------------------------------------------------------------------
>
>                 Key: HTTPCLIENT-293
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-293
>             Project: HttpComponents HttpClient
>          Issue Type: Improvement
>          Components: HttpClient
>    Affects Versions: 1.0 Alpha
>         Environment: Operating System: All
> Platform: All
>            Reporter: Eric Dofonsou
>            Priority: Minor
>             Fix For: 4.0 Final
>
>
> Because of the the following line in getAsciiBytes 
>  data.getBytes("US-ASCII");
> The returned string is modified if has Latin Characters.
> Ex : Document non-controlé -> Document non-control?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to