Get UTF-8 input with X11 Display
问题 I've been trying and reading lots of resources on the internet, trying to find a way to get an UTF-8 keyboard (composed) input from a X Display. But I could not make it work. I have tried the example code from this link (exaple 11-4), but no success. I also have written a simple example (below) to try to make it work. My simple test case is to print an "é", which happens by typing the acute and then the e. What is wrong? Thanks, Here is my example: #include <X11/Xlib.h> #include <X11/Xutil.h>