I have a python code that prints Arabic text on vscode terminal, the output in the terminal appears in "unreadable" format.
code:
print('مرحبا')
output:
مرحبا
How can I solve this issue?
I have a python code that prints Arabic text on vscode terminal, the output in the terminal appears in "unreadable" format.
code:
print('مرحبا')
output:
مرحبا
How can I solve this issue?
You need to import arabic-reshaper library:
Type in your system command line "pip install --upgrade arabic-reshaper".
Then use import arabic_reshaper
in your IDE.
After that: : "pip install python-bidi".
And use from bidi.algorithm import get_display
in your IDE.
Yum Just need to Change the Encoding. On the the status bar down click on UTF-8 --> save with encoding --> the choose you encodeing (i think windows 1256)