Having read tutorials and books on C, I am trying hard to connect my knowledge of UTF (as the text format for roman letters and all sorts of other alphabets/scripts) with C, as a programming language used all over the world.
C seems to take ASCII characters.
So if I wanted to write a program with input/output in Chinese,say, how would I implement this with C?
You would be using “wide char”
wcharinstead ofchar.http://en.wikipedia.org/wiki/Wide_character
http://pubs.opengroup.org/onlinepubs/007908799/xsh/wchar.h.html
http://msdn.microsoft.com/en-us/library/aa242983(v=vs.60).aspx
There are also specialized libraries like iconv that help on some platforms.