Skip to content

Windows: Cryptomator tray menu has broken Unicode text #1474

Closed

Description

@ericswpark

Description

Cryptomator tray menu has broken Unicode text

System Setup

  • Operating system and version: Windows 10 Version 20H2 (Build 19042.685)
  • Cryptomator version: 1.5.11
  • Volume type: Doesn't matter

Steps to Reproduce

  1. Install Cryptomator
  2. Right click on the tray icon

Expected Behavior

The tray menu is displayed properly.

Actual Behavior

The tray menu is displayed with squares as replacements for Unicode text.

Reproducibility

Always

Additional Information

Windows locale was set to Korean during installation.

The rest of the Cryptomator UI displays properly, with correct Korean translations. It is only the tray menu that is exhibiting the issue.

Screenshot of the problem:

image

As noted in issue #1491 this affects all languages using Unicode, such as Chinese.

Activity

  1. infeo commented on Dec 18, 2020

    @infeo
    Member

    This is a known upstream bug in te JDK, see the comment in this bug ticket.

    Blocked by #570

  2. added
    state:blocked
    on Dec 18, 2020
  3. overheadhunter commented on Jan 5, 2021

    @overheadhunter
    Member

    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?

  4. changed the title [-]Windows: Cryptomator tray menu has broken Korean text[/-] [+]Windows: Cryptomator tray menu has broken Unicode text[/+] on Jan 5, 2021
  5. ericswpark commented on Jan 5, 2021

    @ericswpark
    Author

    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?

  6. ericswpark commented on Mar 31, 2021

    @ericswpark
    Author

    @overheadhunter @infeo as a workaround until JavaFX tray support is added, could we either

    1. disable non-ascii translations for tray menu items as suggested by @overheadhunter, or
    2. 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.

  7. overheadhunter commented on Apr 1, 2021

    @overheadhunter
    Member

    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.

  8. raisin8010 commented on Apr 9, 2021

    @raisin8010

    It is very upsetting that the problem hasn't been fixed for a long time.

  9. ericswpark commented on Apr 9, 2021

    @ericswpark
    Author

    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.

  10. imaqqqq commented on May 27, 2021

    @imaqqqq

    For those Chinese users, changing file.encoding=GBK in Cryptomator's config file could be the workaround
    image

  11. overheadhunter commented on May 31, 2021

    @overheadhunter
    Member

    For those Chinese users, changing file.encoding=GBK in Cryptomator's config file could be the workaround
    image

    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?

  12. infeo commented on Aug 2, 2021

    @infeo
    Member

    @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).

  13. overheadhunter commented on Aug 2, 2021

    @overheadhunter
    Member

    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.

  14. 9 remaining items

  15. marked 字符乱码 #3989 as a duplicate of this issue on Sep 22, 2025
  16. purejava commented on Apr 13, 2026

    @purejava
    Contributor

    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.

  17. purejava commented on Apr 15, 2026

    @purejava
    Contributor

    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:
    Image

    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:
    Image

    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?

  18. Red51531 commented on Nov 4, 2026

    @Red51531
    Contributor

    @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

  19. reopened this on Nov 5, 2026
  20. added this to the 1.20.0 milestone on Nov 5, 2026
  21. added a commit that references this issue on Nov 10, 2026
    9b552d3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    misc:guios:windowsstate:blocked

    Type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions