Writing non-Western characters is much the same as writing western ones. You can do it with wcout or wprintf, something like:
wstring message = L"السلام عليك";
cout << message.c_str() << endl;
wprintf(L"%s\n", message.c_str());
Make sure you use the correct codepage in your command window when running this so the characters display correctly.