Am 12.01.2009 um Mo, 12. 01 2009, 21:06 schrieb Iain Hibbert:
I am given a data buffer (const, not nul terminated) claiming to contain an encoded text string and I know the language & encoding (likely "en" &"UTF-8" but no guarantee) and I want to safely display this string on stdout. I'm frankly lost in a maze of twisty manpages (and, although there wassome massive citrus update recently I've not caught up yet), probably Ineed mbstowcs() and a wprintf() but I'm typically ignorant ASCII user. How do I do this, is there any simple example I could look at?
Just printf it, and hope that the displaying terminal will do the work for you?
:-) - Hubert