首先考虑的是,c语言有和win32接口相似的接口(mbstowcs/wcstombs等),按这种方案,需要使用setlocale这个接口,经过测试发现,这个接口在windows和linux都有效,能正确转成..._t , const char *, int32_t,int32_t*) = 0;
bool openIcuuc()
{
void* libFile = dlopen("/system/lib/libicuuc.so...", RTLD_LAZY);
if (libFile)
{
ucnv_convert = (void (*)(const char *, const char *, char * , int32..._t , const char *, int32_t,int32_t*))dlsym(libFile, "ucnv_convert_3_8");
int index = 0;
char fun_name..._t , const char *, int32_t,int32_t*))dlsym(libFile, fun_name);
if (ucnv_convert)
return true;