Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Error Running main.py [BUG] #28

Open
animeworld0310 opened this issue Jan 15, 2023 · 1 comment
Open

Error Running main.py [BUG] #28

animeworld0310 opened this issue Jan 15, 2023 · 1 comment

Comments

@animeworld0310
Copy link

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
Copy link

menotuu commented Feb 28, 2023

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

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants