{"id":879,"date":"2013-05-14T17:52:12","date_gmt":"2013-05-14T09:52:12","guid":{"rendered":"http:\/\/www.youthtribe.com\/?p=879"},"modified":"2013-05-14T17:52:12","modified_gmt":"2013-05-14T09:52:12","slug":"vs2010-mfc-vc-%e4%b8%8b%e8%a7%a3%e5%86%b3writestring%e4%b8%8d%e6%88%90%e5%8a%9f%e7%9a%84%e9%97%ae%e9%a2%98-unicode-%e5%ae%bd%e5%ad%97%e7%ac%a6","status":"publish","type":"post","link":"http:\/\/www.youthtribe.com\/archives\/879","title":{"rendered":"vs2010-mfc-vc++ \u4e0b\u89e3\u51b3writestring\u4e0d\u6210\u529f\u7684\u95ee\u9898 unicode \u5bbd\u5b57\u7b26"},"content":{"rendered":"

vs2010-mfc-vc++ \u4e0b\u89e3\u51b3writestring\u4e0d\u6210\u529f\u7684\u95ee\u9898 unicode \u5bbd\u5b57\u7b26<\/p>\n

CString filename;
\nfilename = “data.csv”;\/\/<\/p>\n

CStdioFile newfile(filename,CFile::modeCreate|CFile::modeWrite);\/\/<\/p>\n

CString strline;<\/p>\n

strline = strcode+L”,”+pApp->appraisal[i]+L”,”+pApp->item[j]+L”,”+pApp->choice[k]+L”\\n”;
\n\/\/MessageBox(strline);
\nchar * old_locale = _strdup( setlocale(LC_CTYPE,NULL));
\nsetlocale(LC_CTYPE,”chs”);\/\/\u8bbe\u5b9a
\nnewfile.WriteString(strline+L”\\n”);\/\/\u6b63\u5e38\u5199\u5165
\nsetlocale(LC_CTYPE,old_locale);\/\/\u8fd8\u539f\u533a\u57df\u8bbe\u5b9a
\nfree(old_locale);<\/p>\n

 <\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"

vs2010-mfc-vc++ \u4e0b\u89e3\u51b3writestring\u4e0d\u6210\u529f\u7684\u95ee\u9898 unicode \u5bbd\u5b57\u7b26 CString filename; filename = “data.csv”;\/\/ CStdioFile newfile(filename,CFile::modeCreate|CFile::modeWrite);\/\/ CString strline; strline = strcode+L”,”+pApp->appraisal[i]+L”,”+pApp->item[j]+L”,”+pApp<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1,9],"tags":[],"_links":{"self":[{"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/posts\/879"}],"collection":[{"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/comments?post=879"}],"version-history":[{"count":2,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/posts\/879\/revisions"}],"predecessor-version":[{"id":881,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/posts\/879\/revisions\/881"}],"wp:attachment":[{"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/media?parent=879"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/categories?post=879"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/tags?post=879"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}