Hi Romy, You are using "%c" to printf a wchar_t. Is that intentional? Shouldn't you use a "%lc"? It appears that the routine relies on sizeof(wchar_t) == 2. Does your sizeof(wchar_t) == 2 on your platform? You are using "%s" to printf a wchar_t*. Is that intentional? Shouldn't you use a "%ls"? HTH, --Eljay