2011/5/10 Konstantin Khomoutov <[email protected]> > > To get the output right, call SetConsoleOutputCP(CP_UTF8) and write > > UTF8 to stdout. > > > > http://msdn.microsoft.com/en-us/library/ms686036(VS.85).aspx > > That's not gonna work. > First, this messes the console code page up--the code page stays at what > SetConsoleOutputCP() set it to after the process exits which is > unacceptable. > Second, outputting a simple sequence of 5 Cyrillic characters ("абвгд") > encoded in UTF-8 using this method simply does not work--puts() outputs > one character not related to the set mentioned above. > A quick demonstration example is attached (I compiled it using VC6, my > Windows uses code page 866 for console output). >
Can you suggest an alternative procedure that will work? > > 1. http://www.coderforlife.com/projects/utilities/ > (See "MinGW Unicode support" there). > > _______________________________________________ > fossil-users mailing list > [email protected] > http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users > > -- D. Richard Hipp [email protected]
_______________________________________________ fossil-users mailing list [email protected] http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

