D-Rats icon indicating copy to clipboard operation
D-Rats copied to clipboard

Error when sending broadcast text message but choosing image file

Open KP4AJ opened this issue 2 years ago • 0 comments

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

KP4AJ avatar Oct 22 '23 22:10 KP4AJ