0

i was trying to make ascii from binary. but i got error
'utf-8' codec can't decode byte 0xa6 in position 1: invalid start byte

here's my code, please help me

def stringmodulasi(f):
    f = "11110000111110101111001100000110000001110000001000001011111111101111111111111010000011001111100111110111111100101111010011111110"
    binary = int(f)
    print(binary)
    ascii_text = binary.to_bytes((binary.bit_length() + 7) // 8, 'big').decode() //result = ����
    return ascii_text

the result i want like this website converter

0 Answers0