# include “cocos2d.h” char *, toUTF (const char *, strGB2312) { ,,,int iLen =, MultiByteToWideChar (CP_ACP, 0, strGB2312,, 1,,空,,0); ,,,wchar_t *, wstr =, new wchar_t [iLen + 1]; ,,,memset (wstr, 0, iLen + 1); ,,,MultiByteToWideChar (CP_ACP, 0, strGB2312,, 1,, wstr,, iLen); ,,,iLen =, WideCharToMultiByte (CP_UTF8, 0, wstr,, 1,,空,,0,,空,,NULL); ,,,char *, strUTF8 =, new char (iLen + 1); ,,,memset (strUTF8, 0, iLen + 1); ,,,WideCharToMultiByte (CP_UTF8, 0, wstr,, 1,, strUTF8,, iLen,,空,,NULL); ,,,如果(wstr),删除[],wstr; ,,,return strUTF8; }
................ ................
................
=========================================================================================
强> <强> 强>的知识点应该可以解决吧…
没有报错了....
<强>致命错误:窗户。h:没有这样的文件或目录? ? ? 强>
可是我已经引入了这个窗户。h的头文件了的…
然后我去百度啊,谷歌啊,搞了一天,然后放弃了……完全迷茫....
<强> 强>
<强> 强>
好吧,暂时只能用这样的方法了…
乱码问题自古以来就是一大病痛啊…