I can not convert ASCII string to Unicode correctly.
I to do so:
wchar_t mImageName[ 1024 ] = { 0 };
const char name[] = "test";
mbstowcs( mImageName, name, length );
LOGI("NDK pushTexture wcslen=%d\n", wcslen( mImageName ) ); - write
1
I think that mbstowcs converts to UTF-8. But wcslen works with UTF-32 imho.
May be need to call mbsinit. But I do not know how to set correct params.
--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To post to this group, send email to andro...@googlegroups.com.
To unsubscribe from this group, send email to android-ndk...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/android-ndk?hl=en.