Hi,
The ICCCM is a bit unclear on what text encodings to use,
such as for XSetWMName().

http://www.x.org/X11R6.8.1/docs/ICCCM/icccm.pdf

void XSetWMName(display, w, text_prop)
Display *display;
Window w;
XTextProperty *text_prop;

http://tronche.com/gui/x/xlib/ICC/cl...SetWMName.html

ICCCM 4.1.2.1 says it is an "uninterpreted" string. Does this mean it should
be sent to the X server as 8-bit english ascii, or 32-bit unicode characters
in the language according to the X servers locale?

What encoding should i use for XTextProperty?

http://tronche.com/gui/x/xlib/ICC/cl...ing-lists.html

typedef struct {
unsigned char *value; /* property data */
Atom encoding; /* type of property */
int format; /* 8, 16, or 32 */
unsigned long nitems; /* number of items in value */
} XTextProperty;

typedef enum {
XStringStyle, /* STRING */
XCompoundTextStyle, /* COMPOUND_TEXT */
XTextStyle, /* text in owner's encoding (current locale) */
XStdICCTextStyle /* STRING, else COMPOUND_TEXT */
} XICCEncodingStyle;