Hi how i can use persion(like arabic) words and texts in python2 and python3 | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Hi how i can use persion(like arabic) words and texts in python2 and python3

python

13th Nov 2016, 3:11 PM
mil
mil - avatar
2 Answers
+ 1
well you should import the Unicode of the language that you want to use it read these : http://docs.python.org/howto/unicode.html http://stackoverflow.com/questions/3856246/unicodeencodeerror-when-reading-pdf-with-pypdf
14th Nov 2016, 12:07 PM
fazel
fazel - avatar
+ 1
thanks fazel im using kivy and when i put text = 'سلام' the out put is م ا ل س how it will be fixed thanks again
14th Nov 2016, 7:10 PM
mil
mil - avatar