[issue42441] UnicodeEncodeError

2020-11-23 Thread Steven D'Aprano
Steven D'Aprano added the comment: You can learn more about unicode and encodings: https://www.joelonsoftware.com/2003/10/08/the-absolute-minimum-every-software-developer-absolutely-positively-must-know-about-unicode-and-character-sets-no-excuses/ https://pyvideo.org/pycon-us-2012/pragmatic-

[issue42441] UnicodeEncodeError

2020-11-23 Thread Eryk Sun
Eryk Sun added the comment: The default encoding for files in Windows is the process active code page, which defaults to the system code page, e.g. code page 1252 if the system locale is "en-IN". You need to explicitly use a Unicode encoding such as UTF-8 when opening the file, e.g. open('so

[issue42441] UnicodeEncodeError

2020-11-23 Thread Md Tausif Iqbal
New submission from Md Tausif Iqbal : my application crashes File "c:\users\tausif\appdata\local\programs\python\python38-32\lib\csv.py", line 154, in writerow return self.writer.writerow(self._dict_to_list(rowdict)) File "c:\users\tausif\appdata\local\programs\python\python38-32\lib\e