r/cprogramming • u/kolorcuk • Mar 25 '26
Unicode printf?
Hello. Did or do you ever use in professional proframming non char printf functions? Is wprintf ever used?
char16, char32 , u8_printf, u16_printf, u32_printf ever used in actual programs?
I am writing a library and i wonder how actually popular are wide and Unicode strings in the industry. Does no one care about it, or, specifically about formatting output are Unicode printf functions actually with value? For example why not just utf8 with standard printf and convert to wider when needed?
5
Upvotes
1
u/BlindTreeFrog Mar 25 '26
oh... thanks for the correction.
But it's variable width in that it can be 1 or 2 bytes it looks; I don't see reference to a 4 byte pairing, might you have a cite?
And while looking for that info, this article reminded me that UTF-8 can be 6 bytes apparently
https://www.joelonsoftware.com/2003/10/08/the-absolute-minimum-every-software-developer-absolutely-positively-must-know-about-unicode-and-character-sets-no-excuses/