Thanks Jason and Martin,
i solved it using following steps:
* struts-config.xml:
* adding the charset in HTML to ISO-8859-1
* adding-Dfile.encoding=ISO-8859-1 to Tomcats CATALINA_OPTS
My Database is still in UNICODE (Postgres).
Now it works, i am happy and my customer too.
Bye Bart
--
Looks like the filename is being sent as utf-8, but being read as Latin1
(can't remember the iso number).
Struts uses Commons FileUpload to handle the file uploads. By default
it uses org.apache.struts.upload.CommonsMultipartRequestHandler
Now Commons FileUpload has a method called setHeader
Frackiewicz [mailto:[EMAIL PROTECTED]
> Gesendet: Mittwoch, 7. September 2005 14:22
> An: Struts Users Mailing List
> Betreff: Upload: strange characters in german filename
>
>
> Hello,
>
> after uploading a file, getFileName() returns me always a wrong
> filenam
Hello,
after uploading a file, getFileName() returns me always a wrong
filename, if the filename contains one of the german umlaute (like ü, ä
or ö). The filename looks like: "Angebot_Tipps fᅵr Kids.doc" (i
display it BEFORE i save the name in the database). This error appears
_only_ in the
4 matches
Mail list logo