AFAIK, You should encode the file name using BASE64 or Quoted-printable
encoding:
Use commons-codec (it's probably in your classpath anyway):
http://jakarta.apache.org/commons/codec/
fileName = new QCodec("utf-8").encode(fileName);
String contentType = provider.getConten
L PROTECTED]
> Sent: Tuesday, November 29, 2005 10:16 AM
> To: Tapestry users
> Subject: Re: Encode filename in http header
>
> The URLEncoder seems to make the filename look even messier. Should I use
> a specific character encoding?
>
> --Martin
>
> On Tue, 29 Nov 2
The URLEncoder seems to make the filename look even messier. Should I use
a specific character encoding?
--Martin
On Tue, 29 Nov 2005 18:13:44 +0100, Patrick Casey <[EMAIL PROTECTED]>
wrote:
Did you try:
String foo = ("Content-disposition", "attachment; filename=\""
+ fi
Did you try:
String foo = ("Content-disposition", "attachment; filename=\""
> + filename + "\"";
String bar = java.net.URLEncoder.encode(foo);
Reponse.setHeader(bar);
--- Pat
> -Original Message-
> From: Martin Strand [mailto:[EMAIL PROTECTED]
>