You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi:
This when trying to broadcast text file but sending image (jpeg). Windows 10 D-Rats latest git code. Obviously if user choose correctly this problem should not occur. Here the traceback:
UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 65: character maps to
File "C:/Users/edfel/D-Rats/d_rats/ui/main_chat.py", line 876, in _bcast_file
data = file_handle.read()
^^^^^^^^^^^^^^^^^^
File "C:/msys64/mingw64/lib/python3.11/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 65: character maps to
73'
Edfel
KP4AJ
The text was updated successfully, but these errors were encountered:
I guess that D-Rats should catch the exception and just log (hopefully only once) that the file can not be sent as it has non-text characters. However as with the other ticket, there is no way to know if a text file is displayable on another platform.
Hi:
This when trying to broadcast text file but sending image (jpeg). Windows 10 D-Rats latest git code. Obviously if user choose correctly this problem should not occur. Here the traceback:
UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 65: character maps to
Win10 Git Code Broadcast image file:
Traceback (most recent call last):
File "C:/Users/edfel/D-Rats/d_rats/ui/main_chat.py", line 876, in _bcast_file
data = file_handle.read()
^^^^^^^^^^^^^^^^^^
File "C:/msys64/mingw64/lib/python3.11/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 65: character maps to
73'
Edfel
KP4AJ
The text was updated successfully, but these errors were encountered: