OS: Windows 10 21H2
Python: Python 3.10.4
Steps:
example.py (file is saved as UTF-8 with/without a BOM)
return codecs.charmap_decode(input,self.errors,decoding_table)[0]
UnicodeDecodeError: 'charmap' codec can't decode byte 0x81 in position 11: character maps to <undefined>
If read_text() and write_text() are replaced with read_bytes() and write_bytes() equivalents, the quote processing is fixed (not tested on Linux). Although, additional new lines are erroneously added, I haven't had a chance to look into why.
Thank you for your time, this library has saved my many hours.
OS: Windows 10 21H2
Python: Python 3.10.4
Steps:
example.py (file is saved as UTF-8 with/without a BOM)
If
read_text()andwrite_text()are replaced withread_bytes()andwrite_bytes()equivalents, the quote processing is fixed (not tested on Linux). Although, additional new lines are erroneously added, I haven't had a chance to look into why.Thank you for your time, this library has saved my many hours.