Skip to content

Instantly share code, notes, and snippets.

View rainbowpigeon's full-sized avatar
🏝️

rainbowpigeon

🏝️
View GitHub Profile
@rainbowpigeon
rainbowpigeon / ReadUtfFile.cpp
Created November 12, 2022 13:03 — forked from VeryCrazyDog/ReadUtfFile.cpp
UTF File to UTF-8 in std::string in C++ on Windows
// Reading ASCII, UTF-8, UTF-16LE, UTF-16BE with auto BOM detection using C++11 on Windows platform
// Code tested on Microsoft Visual Studio 2013 on Windows 7
// Part of the code is referencing http://cfc.kizzx2.com/index.php/reading-a-unicode-utf16-file-in-windows-c/
#include <stdio.h>
#include <tchar.h>
#include <string>
#include <fstream>
#include <sstream>
#include <locale>
http://ameritascorp.account.box.com
http://amplifiedoffice.account.box.com
http://arcadvisorygroup.account.box.com
http://archigate.account.box.com
http://baylor.account.box.com
http://buffalo.account.box.com
http://cisco.account.box.com
http://clemson.account.box.com
http://cotterservices.app.box.com
http://cwru.account.box.com