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