0

Filedownload.save charset error

asked 2019-06-26 23:04:04 +0800

Thanaszissz gravatar image Thanaszissz
1

Hi,

I have a problem whit filename charset under zk. I use the Filedownload.save method with input stream. like this: Filedownload.save(dok.getInputStream(), dok.getMimeType(),name);

when i want to download a file with name árvíztűrő.txt, in the download only the file name is árvíztr.txt.. So the ő, ű chars not in the filename.

Can you help? where can i set the correct charset ?

delete flag offensive retag edit

Comments

can you also provide the ZK version you are using? I assume it's not 6.5.3 which is very old

cor3000 ( 2019-06-27 19:21:32 +0800 )edit

of course 7.1.1 zk

Thanaszissz ( 2019-06-27 19:47:39 +0800 )edit

7.1.1 doesn't exist so am I right to assume you meant 7.0.1? If not please pick an existing version from this list: https://mavensync.zkoss.org/maven2/org/zkoss/zk/zk/

cor3000 ( 2019-06-28 11:16:43 +0800 )edit

1 Answer

Sort by » oldest newest most voted
0

answered 2019-06-28 11:26:38 +0800

cor3000 gravatar image cor3000
4596 2 7
ZK Team

First idea might be related to https://forum.zkoss.org/question/109691/filedownloadsave-cut-filenames/

Can you try with version 8.5.1 to see if it fixes the problem?

link publish delete flag offensive edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
1 follower

RSS

Stats

Asked: 2019-06-26 23:04:04 +0800

Seen: 5 times

Last updated: Jun 28

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More