+ 2

UnicodeEncodeError

While unicode encoding is supported by Python 3, every time I try to run this code: >>print(chr(1587)) it gives me the following error: UnicodeEncodeError: 'charmap' codec can't encode character '\u0628' in position 0: character maps to <undefined> Notice that the encode range of chr(1587) is supported and working fine on Python IDLE on my PC. I just get this error when I try to run the code on Sololearn code playground! How to solve this problem to make my code working on SoloLearn code environment?

4th Sep 2017, 10:05 PM
Mohamed Saad
Mohamed Saad - avatar
2 Respostas
+ 2
@Michael it seems that SoloLearn is trying to avoid some features of the massive python libraries, this is not fair specially for such encoding errors in which you have no other way to go around the problem and find an alternative code!
9th Sep 2017, 2:06 AM
Mohamed Saad
Mohamed Saad - avatar
+ 1
me to. every time I try to import the tkinker module and assign the To root it gives me something similar. maybe code playground wasn't but like the IDLE
8th Sep 2017, 7:00 PM
Michael
Michael - avatar