How to Validate UTF-8 Encoding? (The Simple UTF-8 Validation Algorithm) May 25, 2019 algorithms, bit hacks, c / c++, string 1 Comment A character in UTF8 can be from 1 to 4 bytes long, subjected to the following rules: For 1-byte character, the first bit is a 0, followed by its … [Continue Reading...]