Relative Content

Tag Archive for c++x11xlib

How to handle Compound Text Encoding in X11 library?

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.