#include <errno.h>
#include <stdlib.h>
#include <string.h>
errno = 0;
iconv_t cd = iconv_open("UTF-8", "GBK");
char* errMsg = NULL;
if (errno !=0)
{
errMsg = strerror(errno);
cout<<errno<<endl;
cout<<errMsg<<endl;
}
时间: 2024-12-09 20:07:48