16,472
社区成员
发帖
与我相关
我的任务
分享
#include "stdafx.h"
#include "windows.h"
int main(int argc, char* argv[])
{
unsigned char utf8[ 0x10 ] = { 230, 136, 145, 230, 152, 175, };
unsigned short e[ 0x10 ];
char ansi[ 0x100 ] = "";
MultiByteToWideChar( CP_UTF8, 0, ( char * )utf8, 6, e, 10 );
WideCharToMultiByte( CP_ACP, 0, e, 2, ansi, 10, NULL, NULL );
printf( "%s\r\n", ansi );
return 0;
}