Quantcast
Channel: Active questions tagged utf-8 - Stack Overflow
Viewing all articles
Browse latest Browse all 1053

How can char[] represent a UTF-8 string?

$
0
0

In C11, a new string literal was added with the prefix u8. This represents an array of chars with the text encoded as UTF-8. How is this even possible? Isn't a normal char signed? Meaning it has one bit less of information to use because of the sign bit? My logic would depict that a string of UTF-8 text would need to be an array of unsigned chars.


Viewing all articles
Browse latest Browse all 1053

Trending Articles



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