how to read txt file which has char or unicode ?

mc 4,576 Reputation points
2024-10-25T14:11:12.06+00:00

I can not use std::fstream right?

If I set locale I can not read normal char If I do not set it I can not read unicode bytes.

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,650 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,757 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.