I need to output russian strings like "ошыбка" to console. I am using ubuntu with g++ compiler and ncurses library. maybe someone could point a tutorial to do that? Any advice also would be appreciated.
My experience with Linux has been that it accepts UTF-8 encoded strings by default. Therefore just have whatever text editor you're using save the files as UTF-8, then just output via cout or whatever as you normally would.
std::cout << "ошыбка";
Compiles just fine here, and outputs what you'd expect (Xubuntu 8.10, Code::Blocks 8.02, "GNU GCC compiler" (couldn't get a version number from C::B -- blech))
Aha, you are right, everything's fine with std::cout. Though ncurses printw() function outputs "о�~H�~K". Any idea how to combine those two so they could work together? because when in ncurses, the cout output will be not visible in the screen. Or maybe any idea how to make ncurses work properly with UTF-8?