Write a python function to convert byte to UTF-8


Topic: Write a python function to convert byte to UTF-8

Solution

def byte_to_utf8(data):
    return data.decode("utf-8")
print(byte_to_utf8(data=b'r\xc3\xa9sum\xc3\xa9'))



List all Python Programs