- mb_convert_encoding: documentation ( source)
- var_dump: documentation ( source)
- mb_detect_encoding: documentation ( source)
<?php
$test = "We look forward to seeing you at the Uni of Portsmouth Open Day on [xxxPodInvite.event_datexxx]. For talk times, latest travel and parking info see the guide at http://bit.ly/openday-guide. If you wish to amend your booking you can login to http://j.mp/UoPOpen using booking ref: [xxxPodInvite.booking_refxxx]. ГЏ";
var_dump($test);
var_dump(mb_convert_encoding($test, 'UTF-7', 'UTF-8'));
var_dump(mb_convert_encoding($test, 'UCS-2', 'UTF-8'));
var_dump(mb_detect_encoding($test, ['UTF-7']));
var_dump(mb_detect_encoding($test));