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

Popular posts from this blog

jquery - Invalid Assignment Left-Hand Side -

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -