Dexter2389 / whatsapp-backup-chat-viewer

Extract WhatsApp conversations from the app's SQLite database and exporting them as JSON or TXT files
BSD 2-Clause "Simplified" License
30 stars 4 forks source link

Error Running main.py [BUG] #28

Open animeworld0310 opened 1 year ago

animeworld0310 commented 1 year ago

Showing the below error :

Traceback (most recent call last): File "C:\Users\yamru\whatsapp-backup-chat-viewer\main.py", line 160, in chats_to_txt_formatted( File "C:\Users\yamru\whatsapp-backup-chat-viewer\src\exports\to_txt.py", line 150, in chats_to_txt_formatted file.write(f"{chat_title_details}\n\n{messages}") File "C:\Program Files\Python311\Lib\encodings\cp1252.py", line 19, in encode return codecs.charmap_encode(input,self.errors,encoding_table)[0] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ UnicodeEncodeError: 'charmap' codec can't encode character '\U0001f601' in position 17: character maps to

menotuu commented 1 year ago

and for me:

PS D:\Desktop\backup-chat-viewer-main> python main.py -mdb msgstore.db -wdb wa.db -o output 0it [00:00, ?it/s] Traceback (most recent call last): File "D:\Desktop\backup-chat-viewer-main\main.py", line 160, in chats_to_txt_formatted( File "D:\Desktop\backup-chat-viewer-main\src\exports\to_txt.py", line 150, in chats_to_txt_formatted file.write(f"{chat_title_details}\n\n{messages}") File "C:\Users\Packy\AppData\Local\Programs\Python\Python311\Lib\encodings\cp1252.py", line 19, in encode return codecs.charmap_encode(input,self.errors,encoding_table)[0] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ UnicodeEncodeError: 'charmap' codec can't encode character '\ue40d' in position 777: character maps to