Hi I was trying to output unicode string to a console with iostreams and failed.
I found this: Using unicode font in c++ console app and this snippet work
I had a similar problem, Output Unicode to console Using C++, in Windows contains the gem that you need to do chcp 65001 in the console before running your program.
chcp 65001
There may be some way of doing this programatically, but I don't know what it is.