-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Description
Got error when read and write the ics file, under python 3.13
File "C:\ics_fix\ics_splitter.py", line 50, in <module>
for line in infh:
^^^^
File "C:\Users\{username}\AppData\Local\Programs\Python\Python313\Lib\encodings\cp1252.py", line 23, in decode
return codecs.charmap_decode(input,self.errors,decoding_table)[0]
~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 6155: character maps to <undefined>
File "C:\ics_fix\ics_splitter.py", line 73, in <module>
outfh.write(''.join(event_content))
~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\{username}\AppData\Local\Programs\Python\Python313\Lib\encodings\cp1252.py", line 19, in encode
return codecs.charmap_encode(input,self.errors,encoding_table)[0]
~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
UnicodeEncodeError: 'charmap' codec can't encode characters in position 6917-6924: character maps to <undefined>
Metadata
Metadata
Assignees
Labels
No labels