2

I am stuck here, as I want to write a simple program that shows Arabic writing on the output console. I have tried many times but I always ended up with strange output. I Use Windows 7 Home premium and the CodeBlocks Compiler.

Please check the code I wrote below; how can I improve it?

#include <iostream>

using namespace std;

int main(){

    cout<<"محمد ذهب الي السوق\n"<<endl;

    return 0;

}
  • 2
    what console you use? – Iłya Bursov May 11 '17 at 23:56
  • 2
    Arabic isn't ASCII. You'll need to print Unicode characters: https://stackoverflow.com/questions/12015571/how-to-print-unicode-character-in-c – Charles May 11 '17 at 23:56
  • 1
    The answer depends on the operating system, and how the output console is configured. – Dan Korn May 12 '17 at 00:16
  • i use CodeBlocks oon windows 7 Home premium. – Tarek khalifa May 12 '17 at 08:37
  • codeblocks is an IDE which uses some compiler to give you the binary output. Those things have no relation whatsoever to the console output. [Displaying Arabic characters in C# console application](http://stackoverflow.com/q/21751827/995714) – phuclv May 12 '17 at 09:13

0 Answers0