zserge / tray

Cross-platform, super tiny C99 implementation of a system tray icon with a popup menu.
MIT License
504 stars 86 forks source link

UTF-8 support for Windows? #8

Open s-h-a-d-o-w opened 6 years ago

s-h-a-d-o-w commented 6 years ago

While working with this, I realized that e.g. umlauts don't work. (In my case Windows 7) Based on my research, it would seem that nix platforms support UTF-8 encoded strings via `char` by default?

Anyway, I've already fixed it in my project by converting to UTF-16 directly before making the Windows API calls, so I could submit a PR if you're interested.