Answers for "how to use decode utf-8 on open"

PHP
15

python open encoding utf-8

from io import open
f = open("test", mode="r", encoding="utf-8")
Posted by: Guest on November-17-2020
1

php utf8_decode

// 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
Posted by: Guest on February-02-2021

Browse Popular Code Answers by Language