首页 > 其他 > 详细

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

时间:2017-02-16 01:02:54      阅读:158      评论:0      收藏:0      [点我收藏+]

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

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

 

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

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

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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!