30-Days-of-Python
30-Days-of-Python copied to clipboard
UnicodeEncodeError [RESOLVED]; RuntimeError: Event loop is closed [OPEN]
Upon running the scipt, I got 2 errors:
-
UnicodeEncodeError: 'charmap' codec can't encode character <some-character> in position <some-position>: character maps to <undefined>SOLUTION: add following parameter tooutput_file.write_text(...):encoding="utf-8" -
RuntimeError: Event loop is closedDid anyone resolve this error?