Reimar Doeffinger wrote: > Though I do not know how to detect the charset of the terminal... #include <langinfo.h> charset = strdup(nl_langinfo(CODESET)); or use locale-dependent conversion functions like wcsrtombs instead of iconv. Greetings, Artur Zaprzała