Thank you both for your idea. I checked in cluster the language settings using the command "locale".
> kubectl exec --stdin --tty wicket-app-76cf4b5b97-hrc62 -- bash > srv:/foo> locale > LANG= > LANGUAGE= > LC_CTYPE="POSIX" > LC_NUMERIC="POSIX" > LC_TIME="POSIX" > LC_COLLATE="POSIX" > LC_MONETARY="POSIX" > LC_MESSAGES="POSIX" > LC_PAPER="POSIX" > LC_NAME="POSIX" > LC_ADDRESS="POSIX" > LC_TELEPHONE="POSIX" > LC_MEASUREMENT="POSIX" > LC_IDENTIFICATION="POSIX" > LC_ALL= > srv:/foo> locale -a > C > C.utf8 > POSIX > en_US.utf8 While we use Springboot with CNB i had to add > "BPE_LANG" : "C.UTF-8" to my environment in bootBuildImage gradle task. It seems to set UTF-8 as default to the JVM. Now i can upload files with Umlauts and "strange" chars :-) Hope this explanation helps others. Regards Per > Gesendet: Mittwoch, 20. November 2024 um 13:29 > Von: "Martin Grigorov" <mgrigo...@apache.org> > An: users@wicket.apache.org > Betreff: Re: UTF-8 Filename in FileUpload > > Hi, > > Make sure that LC_ALL env var is set to some_lang.UTF-8 on your Linux > server. > > On Wed, Nov 20, 2024 at 2:22 PM Per Newgro <per.new...@gmx.ch.invalid> > wrote: > > > Hi, > > > > i would like to upload a file that is named "Schmutzfänger Offroad hinten > > 202443 und -444.JPG" in my local Windows Filesystem. > > My app running in a cluster on a Linux image produces this exception. > > > > <pre>Unexpected error occurred > > java.nio.file.InvalidPathException: Malformed input or input contains > > unmappable characters: Schmutzfänger Offroad hinten 202443 und -444.JPG > > at java.base/sun.nio.fs.UnixPath.encode(Unknown Source) > > at java.base/sun.nio.fs.UnixPath.<init>(Unknown Source) > > at java.base/sun.nio.fs.UnixFileSystem.getPath(Unknown Source) > > at java.base/java.nio.file.Path.of(Unknown Source) > > at java.base/java.nio.file.Paths.get(Unknown Source) > > at > > org.apache.commons.fileupload2.core.DiskFileItem.checkFileName(DiskFileItem.java:165) > > at > > org.apache.commons.fileupload2.core.FileItemInputImpl.getName(FileItemInputImpl.java:179) > > at > > org.apache.commons.fileupload2.core.AbstractFileUpload.lambda$parseRequest$1(AbstractFileUpload.java:473) > > at org.apache.commons.io > > .function.IOIterator.forEachRemaining(IOIterator.java:65) > > at > > org.apache.commons.fileupload2.core.AbstractFileUpload.parseRequest(AbstractFileUpload.java:462) > > at > > org.apache.wicket.protocol.http.servlet.MultipartServletWebRequestImpl.parseFileParts(MultipartServletWebRequestImpl.java:189) > > at > > org.apache.wicket.markup.html.form.Form.handleMultiPart(Form.java:1494) > > at > > org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:812) > > at org.apache.wicket.markup.html.form.Form.onRequest(Form.java:760) > > [...] > > </init></pre> > > > > Here is a small code snippet showing our current "setup" > > <code> > > MyPage() { > > Form<> form; > > add(form = new Form<>("form", model); > > form.setMultiPart(true); > > form.add(new FileUploadField("uploadMedium", PropertyModel.of(model, > > "fileUpload")); > > } > > </code> > > > > When we commit the form, the exception is thrown. > > > > What is a good way to make file upload possible, with these type of > > filenames? > > Do i really have to overwrite FileUpload.getClientFileName? Maybe we can > > setup > > something completely different? > > > > Thanks for your support > > Regards > > Per > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > > For additional commands, e-mail: users-h...@wicket.apache.org > > > > > </per.new...@gmx.ch.invalid></mgrigo...@apache.org> --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org