C++ Converting utf-16 LE BOM to utf-8

528 Views Asked by At

I am trying to read a .txt file which is encoded with UTF-16 LE BOM, and trying to display it in my C++ GUI. But the only options I found online are deprecated.

image

Stuff I tried:

Reading UTF-16 file in c++

How to set file encoding format to UTF8 in C++

How do I print UTF-8 from c++ console application on Windows

0

There are 0 best solutions below