carderne / signal-export

Export your Signal chats to markdown files with attachments
Other
481 stars 50 forks source link

Encoding errors #72

Closed larrachecoeur closed 1 year ago

larrachecoeur commented 2 years ago

Desktop

I am getting lots of encoding errors

e.g.

` class IncrementalEncoder(codecs.IncrementalEncoder): │ │ 18 │ def encode(self, input, final=False): │ │ > 19 │ │ return codecs.charmap_encode(input,self.errors,encoding_table)[0] │ │ 20 │ │ 21 class IncrementalDecoder(codecs.IncrementalDecoder): │ │ 22 │ def decode(self, input, final=False): │ │ │ │ ┌─────────────────────────────────────────── locals ───────────────────────────────────────────┐ │ │ │ final = False │ │ │ │ input = "[2022-07-19 15:25] Me: Et si tu n′existais pas\r\nDis-moi pourquoi │ │ │ │ j'existerais\r\nP"+73 │ │ │ │ self = <encodings.cp1252.IncrementalEncoder object at 0x000002942D3CAB00> │ │ │ └──────────────────────────────────────────────────────────────────────────────────────────────┘ │ └──────────────────────────────────────────────────────────────────────────────────────────────────┘ UnicodeEncodeError: 'charmap' codec can't encode character '\u2032' in position 33: character maps to

chars with accents will not be mapped correctly, too. even their do not initiate an runtime error

�tre seul cet apr�s-midi `

carderne commented 2 years ago

If you can try to track down the line in sigexport/main.py where this is happening then I can do a better job of helping! It should be somewhere in the error output.

larrachecoeur commented 2 years ago

hi chrisi will try to do this tomorrowregards marcoAm 08.09.2022 17:59 schrieb Chris Arderne @.***>: If you can try to track down the line in sigexport/main.py where this is happening then I can do a better job of helping! It should be somewhere in the error output.

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>

carderne commented 1 year ago

Should be fixed by #80