Python 3 print() function with Farsi/Arabic characters

I simplified my code for better understanding. here is the problem : case 1: # -*- coding: utf-8 -*- text = "چرا کار نمیکنی؟" # also using u"…." results the same print(text) output: UnicodeEncodeError: 'charmap' codec can't encode characters in position 0-2: character maps to <undefined> case 2: text = "چرا کار نمیکنی؟".encode("utf-8") print(text) there … Read more

No outlines on bins of Matplotlib histograms or Seaborn distplots

While doing some practice problems using seaborn and a Jupyter notebook, I realized that the distplot() graphs did not have the darker outlines on the individual bins that all of the sample graphs in the documentation have. I tried creating the graphs using Pycharm and noticed the same thing. Thinking it was a seaborn problem, I tried some hist() charts using matplotlib, only to get the same results.