<?php $str = "\x96"; // en-dash in Windows-1252 var_dump(mb_check_encoding($str, "UTF-8")); var_dump(mb_check_encoding($str, "ISO-8859-1")); var_dump(mb_check_encoding($str, "Windows-1252")); var_dump(mb_detect_encoding($str, [ "UTF-8", "ISO-8859-1", "Windows-1252"], true)); var_dump(mb_detect_encoding($str, [ "UTF-8", "Windows-1252", "ISO-8859-1"], true));
You have javascript disabled. You will not be able to edit any code.