Bruno Haible wrote:
... 1) For printf("%s\n", "SchÃne GrÃÃe"); ... 2) For printf("%ls\n", L"SchÃne GrÃÃe"); ... OTOH, if you limit yourself to Linux systems and don't want your programs to be portable or internationalized, you can now use option 2.
Being that UTF-8 is sortof an an endpoint in the evolution of encodings, I also consider option 1 to be perfectly valid. Anyone still using legacy encoding locales is going to increasingly have problems as all things converge on utf-8 (filenames, protocols, etc). If you dont need string localization its very convenient to work with literals in native utf-8, imo.
-- Linux-UTF8: i18n of Linux on all levels Archive: http://mail.nl.linux.org/linux-utf8/
