On Thu, 2011-03-10 at 11:48 +0100, Stefan Mietke wrote:
> Hi list,
> 
> I have a problem while sending multipart/form-data. With the default 
> encoding "US-ASCII" everything is fine. But I have to use "UTF-8" 
> encoding cause of German characters in the file name.
> 
> This is the class where I set the charset to UTF-8:
> 
> MultipartEntity(HttpMultipartMode mode, String boundary, Charset charset)
> 
> Here I set the charset with "Charset.forName(HTTP.UTF_8)"
> 
> After setting this, I cannot transfer my binary data to the server 
> anymore, cause the HTTP POST Request seems to be corrupted. The 
> parameters (defined as StringBody) didn't use the "&" as delimiter. 
> Every time the boundary is appending and this fails on the server side.
> 
> Right: id=1234&lang=de ....
> False: id=1234--boundarylang=de ...
> 
> Any ideas?
> 

Post wire / context log.

Oleg



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to