<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Hi, </div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
I would like to kindly ask you to provide information</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
on whether it is possible to set the UTF-8 encoding for the function `XSetClassHint`<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
I have not found any information on this subject anywhere, </div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
decided to write here, I am sure it is possible, can someone provide an example?<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
```</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
   XStoreName(xw.dpy, xw.win, xw.win_name);
<div>   XSetIconName(xw.dpy, xw.win, xw.win_name);</div>
<div><br>
</div>
<div>   XChangeProperty( xw.dpy, xw.win,</div>
<div>         XInternAtom( xw.dpy, "_NET_WM_NAME", False ),</div>
<div>         XInternAtom( xw.dpy, "UTF8_STRING", False ),</div>
<div>         8, PropModeReplace, ( unsigned char * ) xw.win_name,</div>
<div>         strlen( xw.win_name ) );</div>
<div>   XChangeProperty( xw.dpy, xw.win,</div>
<div>         XInternAtom( xw.dpy, "_NET_WM_ICON_NAME", False ),</div>
<div>         XInternAtom( xw.dpy, "UTF8_STRING", False ),</div>
<div>         8, PropModeReplace, ( unsigned char * ) xw.win_name,</div>
<div>         strlen( xw.win_name ) );</div>
<div><br>
</div>
<div>   XClassHint * classhint = XAllocClassHint();</div>
<div>   if( classhint )</div>
<div>   {</div>
<div>      classhint->res_name = classhint->res_class = ( char * ) xw.win_name;</div>
<div>      XSetClassHint( xw.dpy, xw.win, classhint );</div>
<div>      XFree( classhint );</div>
<span>   }</span><br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
```</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Best regards<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
- Rafał </div>
</body>
</html>