Why utf8 symbols cannot be printed via glib functions?
Source code:
#include \"glib.h\" #include int main() { g_print(\"марко\\n\");
You need to initialize the locale's encoding by calling setlocale at your program's start.
setlocale(LC_CTYPE, "")
This is normally carried out for you if you use some initialization function like gtk_init(..) or similar.
gtk_init(..)