You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Windows: Cryptomator tray menu has broken Unicode text #1474
As noted in the upstream ticket, this affects all unicode chars. Maybe we should delete any translations using non-ascii chars for tray menu items until this gets fixed?
changed the title [-]Windows: Cryptomator tray menu has broken Korean text[/-][+]Windows: Cryptomator tray menu has broken Unicode text[/+]on Jan 5, 2021
Thanks @overheadhunter, edited bug description so hopefully people w/ broken tray menus could see this bug. I do agree that a fallback to the English translation would be more helpful than what is currently shown. Maybe a temporary fallback in the code to force English for the tray menu until the new JDK implementation is added?
@overheadhunter@infeo as a workaround until JavaFX tray support is added, could we either
disable non-ascii translations for tray menu items as suggested by @overheadhunter, or
change the encoding for non-ascii translations into an encoding that AWT supports?
A reported workaround is to add -Dfile.encoding=MS949 for Korean translations at least. I don't know how to test this with Cryptomator but it should be added to the class that is exhibiting the problem.
It seems like the JavaFX tray support has stalled since it's been open for several years with no activity since 2018.
Changing file.encoding is something that users need to do by themselves in Cryptomator's config file, as we can't assume any language-specific encoding when distributing the app.
@JaniruTEC is currently experimenting with an alternative tray menu. The icon will still be AWT, but the menu itself can be custom JavaFX. This would solve the encoding issue.
It is very upsetting that the problem hasn't been fixed for a long time.
Well as per the response above from @overheadhunter it seems like the devs are experimenting with different solutions, so be patient. It's a platform limitation that's blocking them from implementing the fixes.
For those Chinese users, changing file.encoding=GBK in Cryptomator's config file could be the workaround
I'm surprised this doesn't impair any other parts of the UI. If not, this might be the best workaround so far. @infeo Do you think this encoding can be set according to system standards during installation?
@overheadhunter Possibly, but the amount of work to achieve it is not clear right now. Additionally, changing the encoding can lead to be unable of using winfsp, see #1465 (comment).
Correct, changing file.encoding does a lot of collateral damage, that's why I wouldn't apply this as a general solution to this problem. I have a slight hope that JEP 400 will raise awareness of such problems a little bit. After all there are plenty of bug reports revolving around AWT and unicode.
If this doesn't get fixed upstream, the only real solution would be switching to a different tray menu tech stack.
Reading through the Microsoft documentation, a Shell_NotifyIcon function is the way to go to display a tray icon. OpenJDK uses it.
The Shell_NotifyIcon function comes in two flavors: Shell_NotifyIconA (ANSI) and Shell_NotifyIconW (Unicode). Although I could not find a reference, which one is used in Windows AWT native, I suspect it to be Shell_NotifyIconA, see comment here.
Maybe a modern, Windows-specific implementation of our new TrayMenuController API can be added?
I wrote a POC using the API mentioned above during the weekend, which uses Shell_NotifyIconW. The tray icon is working. The next step would be to set up a Windows box in Korean, to see whether the POC makes a difference.
I have difficulties to reproduce the issue on newer components. I am in Germany on a German Windows 11, so I first installed the Korean language pack, activated that and logged in again. Result was as follows and looks ok to me:
Then I followed the description of the OP and installed a fresh Windows 11 with the Korean language selected for the download. I kept the suggestions presented by the Windows installer. Result was as follows and looks ok to me too:
For both tests the Cryptomator 1.19.2 exe installer x64 from cryptomator.org was downloaded, installed and started.
Does this issue still persist? I guess no one would port back a fix for old Windows 10 or the former Cryptomator version mentioned above.
@purejava re "Does this issue still persist?": yes for Simplified Chinese on 1.19.6. OpenJDK's Windows fontconfig.properties has sequence.allfonts.UTF-8.ko (and .ja, .hi) but no UTF-8.zh, so Chinese falls back to Arial,ANSI_CHARSET while Korean renders fine. Fix without touching file.encoding: #4381
Activity
infeo commentedon Dec 18, 2020
This is a known upstream bug in te JDK, see the comment in this bug ticket.
Blocked by #570
overheadhunter commentedon Jan 5, 2021
As noted in the upstream ticket, this affects all unicode chars. Maybe we should delete any translations using non-ascii chars for tray menu items until this gets fixed?
[-]Windows: Cryptomator tray menu has broken Korean text[/-][+]Windows: Cryptomator tray menu has broken Unicode text[/+]ericswpark commentedon Jan 5, 2021
Thanks @overheadhunter, edited bug description so hopefully people w/ broken tray menus could see this bug. I do agree that a fallback to the English translation would be more helpful than what is currently shown. Maybe a temporary fallback in the code to force English for the tray menu until the new JDK implementation is added?
ericswpark commentedon Mar 31, 2021
@overheadhunter @infeo as a workaround until JavaFX tray support is added, could we either
A reported workaround is to add
-Dfile.encoding=MS949for Korean translations at least. I don't know how to test this with Cryptomator but it should be added to the class that is exhibiting the problem.It seems like the JavaFX tray support has stalled since it's been open for several years with no activity since 2018.
overheadhunter commentedon Apr 1, 2021
Changing
file.encodingis something that users need to do by themselves in Cryptomator's config file, as we can't assume any language-specific encoding when distributing the app.@JaniruTEC is currently experimenting with an alternative tray menu. The icon will still be AWT, but the menu itself can be custom JavaFX. This would solve the encoding issue.
raisin8010 commentedon Apr 9, 2021
It is very upsetting that the problem hasn't been fixed for a long time.
ericswpark commentedon Apr 9, 2021
Well as per the response above from @overheadhunter it seems like the devs are experimenting with different solutions, so be patient. It's a platform limitation that's blocking them from implementing the fixes.
imaqqqq commentedon May 27, 2021
For those Chinese users, changing file.encoding=GBK in Cryptomator's config file could be the workaround

overheadhunter commentedon May 31, 2021
I'm surprised this doesn't impair any other parts of the UI. If not, this might be the best workaround so far. @infeo Do you think this encoding can be set according to system standards during installation?
infeo commentedon Aug 2, 2021
@overheadhunter Possibly, but the amount of work to achieve it is not clear right now. Additionally, changing the encoding can lead to be unable of using winfsp, see #1465 (comment).
overheadhunter commentedon Aug 2, 2021
Correct, changing
file.encodingdoes a lot of collateral damage, that's why I wouldn't apply this as a general solution to this problem. I have a slight hope that JEP 400 will raise awareness of such problems a little bit. After all there are plenty of bug reports revolving around AWT and unicode.If this doesn't get fixed upstream, the only real solution would be switching to a different tray menu tech stack.
9 remaining items
purejava commentedon Apr 13, 2026
Reading through the Microsoft documentation, a
Shell_NotifyIconfunction is the way to go to display a tray icon. OpenJDK uses it.The
Shell_NotifyIconfunction comes in two flavors:Shell_NotifyIconA(ANSI) andShell_NotifyIconW(Unicode). Although I could not find a reference, which one is used in Windows AWT native, I suspect it to beShell_NotifyIconA, see comment here.I wrote a POC using the API mentioned above during the weekend, which uses
Shell_NotifyIconW. The tray icon is working. The next step would be to set up a Windows box in Korean, to see whether the POC makes a difference.purejava commentedon Apr 15, 2026
I have difficulties to reproduce the issue on newer components. I am in Germany on a German Windows 11, so I first installed the Korean language pack, activated that and logged in again. Result was as follows and looks ok to me:

Then I followed the description of the OP and installed a fresh Windows 11 with the Korean language selected for the download. I kept the suggestions presented by the Windows installer. Result was as follows and looks ok to me too:

For both tests the Cryptomator 1.19.2 exe installer x64 from cryptomator.org was downloaded, installed and started.
Does this issue still persist? I guess no one would port back a fix for old Windows 10 or the former Cryptomator version mentioned above.
Or am I missing something?
Add missing UTF-8.zh fontconfig sequences for the Windows tray menu
Red51531 commentedon Nov 4, 2026
@purejava re "Does this issue still persist?": yes for Simplified Chinese on 1.19.6. OpenJDK's Windows
fontconfig.propertieshassequence.allfonts.UTF-8.ko(and.ja,.hi) but noUTF-8.zh, so Chinese falls back toArial,ANSI_CHARSETwhile Korean renders fine. Fix without touchingfile.encoding: #4381Merge pull request cryptomator#4384 from cryptomator/fix/chinese-tray…