RELIHR / Discord-Status-Rotator

This script allows you to change the status (rotator) of your Discord account. Please Star ⭐
MIT License
9 stars 6 forks source link

Charmap Error (Fixed) #3

Closed Xyqc closed 5 months ago

Xyqc commented 5 months ago

Traceback (most recent call last): File "C:\Users\ADMIN\Downloads\statuschanger\Discord-Status-Changer\main.py", line 70, in <module> emojis = read_statuses("emojis.txt") ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\ADMIN\Downloads\statuschanger\Discord-Status-Changer\main.py", line 46, in read_statuses return [line.strip() for line in file.readlines()] ^^^^^^^^^^^^^^^^ File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.11_3.11.2544.0_x64__qbz5n2kfra8p0\Lib\encodings\cp1252.py", line 23, in decode return codecs.charmap_decode(input,self.errors,decoding_table)[0] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ UnicodeDecodeError: 'charmap' codec can't decode byte 0x8f in position 5: character maps to <undefined>

How to fix?

Xyqc commented 5 months ago

This seems to have something to do UTF-8 Encoding.

RELIHR commented 5 months ago

It should let you now, there is the utf-8 encoding.

Sorry for not answering quickly