fork download
  1. <?
  2. $char = '£';
  3. echo mb_detect_encoding($char);
  4. $char = mb_convert_encoding($char, "Windows-1252", "UTF-8");
  5. echo mb_detect_encoding($char);
  6. ?>
Success #stdin #stdout 0.01s 20520KB
stdin
Standard input is empty
stdout
UTF-8