c++ - how to send international characters to windows console? -
code:
#include <windows.h> int main() { setconsoleoutputcp(cp_utf8); system("echo Ιλιάδα"); } prints on console: Ιλιάδα source encoded in utf-8 bom.
but if try: system(l"echo Ιλιάδα");, error: error: cannot convert 'const wchar_t*' 'const char*' argument '1' 'int system(const char*)'. , of course didn't expect else here. there other function accept these characters ?
use _wsystem 1 wide strings.
Comments
Post a Comment