WCSTOMBS 函数不支持中文件的解决方法(设置代码页)

时间:2017-02-16 01:02:54   收藏:0   阅读:160

代码页没有进行设置。需要调用locale.h 中定义的一个函数设置默认的代码页

 _tsetlocale(LC_ALL,_T(""));//设置代码页 
 wcstombs(sendBuf,strSendData,sendLen);
 setlocale(LC_ALL,"C");

 

http://blog.csdn.net/liutiaoer/article/details/5790104

原文:http://www.cnblogs.com/findumars/p/6403936.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!