Reputation: 69
I work with some Persian text files and when I run PyCharm it shows the result like this:
As you see, it's not easy to read. How can I change that font?
Upvotes: 3
Views: 1714
Reputation: 1440
Go to File > Settings > Editor > Color Scheme > Console Font.
Tick "Use console font instead of the default" Choose font and size as you like.
Also follow: Set the font size in pycharm's python console or terminal
Upvotes: 6
Reputation: 310
try this :
from __future__ import unicode_literals
import hazm
import json
import requests
import urllib
from translate import translator
text = "persian"
quoted = urllib.quote_plus(text.encode("utf-8"))
print translator('fa','en',quoted)
Upvotes: 1