字符集相关
baidu_19552787
这个作者很懒,什么都没留下…
展开
-
初识 字符集
// CharacterAndEncoding.cpp : Defines the entry point for the console application. // #include "stdafx.h" //void TcharToChar(const TCHAR * tchar, char * _char) //{ // int iLength; // //获取字节长度 // //iLength = WideCharToMultiByte(CP_ACP, 0, tchar, -1, N原创 2021-10-28 20:30:25 · 85 阅读 · 0 评论 -
字符集相关:在UNICODE下 读取ANSI、UTF-8、UTF-16格式的txt文件
// ReadFile.cpp : Defines the entry point for the console application. // #include "stdafx.h" # include "iostream" using namespace std; #define FilePath "./config1.txt" //-- 读ANSI格式的txt文件 void MyReadANSIFile() { FILE* fp = nullptr; //-- 以二进制的方式读入ANSI格原创 2021-10-28 17:45:49 · 272 阅读 · 0 评论