There are routines in wchar.h to convert to/from wchar_t to/from local charset, but you have to set locale properly, typically:
Code:
  setlocale( LC_ALL, "" );