Hehe, my "plain #X11 with #xcb" journey is really starting at square 1.
TIL, "legacy" (ICCCM) X11 window properties use a type STRING which only allows #latin1 encoding. There's a weird thing called COMPOUND_TEXT to work around that which probably isn't worth implementing today. 🤯
Fixed my code to
- Make sure we use a UTF-8 locale
- Convert the window title to Latin1 for setting WM_NAME
- Additionally set the original UTF-8 title in _NET_WM_NAME (of type UTF8_STRING).
Wow, baby steps 😂
https://github.com/Zirias/xmoji/commit/3701d56cc76e1cd5688e20aed3539562faf90950

