Welcome to CodeCoruses.eu

welcome.jpg

English | Norwegian

Coding Fora logo
  • main_navigation_menu_icon.png
  • Search
  • ic_more_vert.png

PHP MySQLi how to fix å

You are here
Fora > PHP MySQLi how to fix å

1_180303121314.jpg
Administrator

vote_up

0

vote_down

Posted by Administrator · 1 October 2018 (16405 days ago) · Report · Email

æ -> æ -> æ

ø -> ø -> ø

Ã¥ -> å -> å

function fix_charset($value){

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

Reply

Social Media

youtube.png