Quantcast
Channel: User HolyBlackCat - Stack Overflow
Viewing all articles
Browse latest Browse all 946

Comment by HolyBlackCat on C++ .txt and UTF-8

$
0
0
UTF-8 encodes some characters with multiple bytes. Read about how it works. You should probably read 1..4 bytes (one character) and decode it into a 32-bit integer (char32_t or std::uint32_t), then repeat.

Viewing all articles
Browse latest Browse all 946

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>