#include #include void main() { char *wc = "string"; wchar_t wbuffer[50]; int i, len; len = mbstowcs( wbuffer, wc, 50 ); if( len != -1 ) { wbuffer[len] = '\0'; printf( "%s(%d)\n", wc, len ); for( i = 0; i < len; i++ ) printf( "/%4.4x", wbuffer[i] ); printf( "\n" ); } }