I would like to make my C program print signs from other charset, not from the ASCII table as it is default. For example, I want to print chars in range [200,250] from the ISO-8859 charset. Is it possible at all? How the compiler should be set? Thanks in advance for help!
Is it possible to change charset encoding in C?
1k views Asked by ChillyWilly88 At
2
In fact C functions don't care about encoding, so if you have a code like that:
It will print out 'germanzied' "Hello World" in exactly the encoding of the C source file, indepedent from system settings etc. The same is true of course if you print strings that you read from a file. If you want to reencode strings (say from UTF-8 to ISO-8859) you have to do t manually or search for an appropriate library