如何将unicode编码串转换成字符串

比如unicode编码串"08 fa 56 fc 30 77 00 00",如何将其转换成字符串
2025-04-08 10:30:47
推荐回答(1个)
回答1:

int UnicodeToASCII(wchar * unicode, char * ascii, int max_len) //把Unicode 转换成 ASCII
{
return WideCharToMultiByte(CP_ACP,NULL,unicode,-1,ascii,max_len,NULL,NULL);
}