askIT

PHP MySQLi how to fix å

You are here
Support > PHP MySQLi how to fix å

vote_up

0

vote_down

Posted by Administrator · 1 October 2018 · Report

æ -> æ -> æ

ø -> ø -> ø

Ã¥ -> å -> å

function fix_charset($value){

utf8_decode($value);
$value = str_replace("æ", "æ", "$value"); // æ
$value = str_replace('ø', "ø", "$value"); // ø
$value = str_replace("Ã¥", "å", "$value"); // å
return $value;
}

1_180303121314.jpg
Administrator

Reply