{"id":1290,"date":"2014-08-19T09:30:38","date_gmt":"2014-08-19T01:30:38","guid":{"rendered":"http:\/\/www.youthtribe.com\/?p=1290"},"modified":"2014-08-19T09:30:38","modified_gmt":"2014-08-19T01:30:38","slug":"aspunicode%e6%96%87%e4%bb%b6%e8%bd%acascii%e6%96%87%e4%bb%b6%e5%87%bd%e6%95%b0","status":"publish","type":"post","link":"http:\/\/www.youthtribe.com\/archives\/1290","title":{"rendered":"[asp]unicode\u6587\u4ef6\u8f6cascii\u6587\u4ef6\u51fd\u6570"},"content":{"rendered":"
\r\nFunction UnicodeToAsciiFile(strFileName)\r\n\t'\u5148\u6253\u5f00unicode\u7684\u6587\u4ef6\r\n\tset fso = CreateObject(\"Scripting.FileSystemObject\")\r\n\tset unicodefile = fso.opentextfile(server.MapPath(strFileName),1,false,-1)'-1\u662f\u6307\u7528unicode\u65b9\u5f0f\u6253\u5f00\r\n\t\r\n\tDim strFileText\r\n\tstrFileText = unicodefile.ReadAll'\u8bfb\u51fa\u6587\u672c\r\n\tunicodefile.close\r\n\tset unicodefile = nothing\r\n\t\r\n\tresponse.write strFileText'\u8f93\u51fa\u4e00\u4e0b\u6587\u672c\r\n\t\r\n\t'\u5199\u6210ascii\u7684\u6587\u4ef6\r\n\tset fso2 = CreateObject(\"Scripting.FileSystemObject\")\r\n\t'Set asciifile = fso2.CreateTextFile(server.MapPath(\"unicode2ascii.txt\"), TRUE , false)\r\n\tSet asciifile = fso2.CreateTextFile(server.MapPath(strFileName), TRUE , false)\r\n\tasciifile.write strFileText\r\n\tasciifile.close\r\n\tset unicodefile = nothing\r\nEnd function\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"Function UnicodeToAsciiFile(strFileName) ‘\u5148\u6253\u5f00unicode\u7684\u6587\u4ef6 set fso = CreateObject(“Scripting.FileSystemObject”) set unicodefile = fso.opentextfile(server.MapPath(strFileName),1,false,-1)’-1\u662f\u6307\u7528unicode\u65b9\u5f0f\u6253\u5f00 Dim strFileText strFileText = unicodefile.ReadAll’\u8bfb\u51fa\u6587\u672c unicodefile.close set unicodefile = nothing <\/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":[215,211,214,217,216],"_links":{"self":[{"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/posts\/1290"}],"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=1290"}],"version-history":[{"count":1,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/posts\/1290\/revisions"}],"predecessor-version":[{"id":1292,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/posts\/1290\/revisions\/1292"}],"wp:attachment":[{"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/media?parent=1290"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/categories?post=1290"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/tags?post=1290"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}