I am getting window title in Xlib using "WM_NAME"
window property, and I have discovered that there is different string types that the property returns. For string type there is "UTF8_STRING"
atom, XA_STRING
(ISO-8859-1), and also some "COMPOUND_TEXT"
atom. While "UTF8_STRING"
and XA_STRING
seems straightforward to use, I have found "COMPOUND_TEXT"
a bit complicated to use.
Here is the only information I found online: https://www.x.org/releases/X11R7.7-RC1/doc/xorg-docs/ctext/ctext.html
The end goal is to parse compound text or at least convert it to a valid UTF-8 string.