0

Every time I try to use Arabic character in any consoles window (python, cmd, ...etc) it shows as squares with question marks like this : Example

The code works fine , if i copy the ???? and paste it on notepad or when i run the code in the IDLE it shows the Arabic characters correctly

I tried to add u"مثال" and i tried to add arabic fonts in my Python code and still facing the same issue . I think its a problem with windows itself because even the cmd shows the same

What should i do ?

  • Whatever console window you are using cannot handle the encoding type. It is likely the default encoding is set to ASCII in them and need to change it to display properly. How you do this is dependent on the console. – MYousefi Dec 25 '20 at 08:49
  • https://stackoverflow.com/questions/5419/python-unicode-and-the-windows-console – deceze Dec 25 '20 at 08:50
  • [Set console font to _Courier New_ or _DejaVu Sans_](https://superuser.com/a/956818/376602). Arabic chars are rendered properly using mentioned fonts… – JosefZ Dec 25 '20 at 17:28

0 Answers0