xxxxxxxxxx
?UTF-8?B?zqzOs869z4nPg8+Ezr/OuSDPgM6xz4HOsc67zq7PgM+EzrXPgg==?=: ;
xxxxxxxxxx
// utf8_decode() function is an inbuilt function in PHP which is used
// to decode a UTF-8 string to the ISO-8859-1
$string_to_decode = "Københavns";
utf8_decode($string_to_decode); // returns Københavns
xxxxxxxxxx
# Assuming the string to be decoded is stored in a variable named 'encoded_string'
decoded_string = encoded_string.decode('utf-8')
print(decoded_string)
xxxxxxxxxx
# UTF-8 encoded string
encoded_str = b'\xe2\x9c\x94\xe2\x9c\x94\xe2\x9c\x94'
# Decoding the UTF-8 encoded string
decoded_str = encoded_str.decode('utf-8')
print(decoded_str)