php utf8_decode
snippet in php

utf8 encode php

user7080

$a = "Não";
  
echo utf8_encode($a);  

php utf8_decode

user4669

// 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