标签:
iconv_tcd=iconv_open("GBK","UTF-8"); char*outbuf=(char*)malloc(inlen*4); bzero(outbuf,inlen*4); char*in=inbuf; char*out=outbuf; size_toutlen=inlen*4; iconv(cd,&in,(size_t*)&inlen,&out,&outlen); outlen=strlen(outbuf); printf("%s\n",outbuf); free(outbuf); iconv_close(cd);
标签:
原文地址:http://www.cnblogs.com/guoxiaoqian/p/4314504.html