<?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));
string(316) "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]. ГЏ"
string(342) "We look forward to seeing you at the Uni of Portsmouth Open Day on +AFs-xxxPodInvite.event+AF8-datexxx+AF0. 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: +AFs-xxxPodInvite.booking+AF8-refxxx+AF0. +BBMEDw-"
string(628) " W e l o o k f o r w a r d t o s e e i n g y o u a t t h e U n i o f P o r t s m o u t h O p e n D a y o n [ x x x P o d I n v i t e . e v e n t _ d a t e x x x ] . F o r t a l k t i m e s , l a t e s t t r a v e l a n d p a r k i n g i n f o s e e t h e g u i d e a t h t t p : / / b i t . l y / o p e n d a y - g u i d e . I f y o u w i s h t o a m e n d y o u r b o o k i n g y o u c a n l o g i n t o h t t p : / / j . m p / U o P O p e n u s i n g b o o k i n g r e f : [ x x x P o d I n v i t e . b o o k i n g _ r e f x x x ] . "
string(5) "UTF-7"
string(5) "UTF-8"
Output for 8.3.5
Warning: PHP Startup: Unable to load dynamic library 'sodium.so' (tried: /usr/lib/php/8.3.5/modules/sodium.so (libsodium.so.23: cannot open shared object file: No such file or directory), /usr/lib/php/8.3.5/modules/sodium.so.so (/usr/lib/php/8.3.5/modules/sodium.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
string(316) "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]. ГЏ"
string(342) "We look forward to seeing you at the Uni of Portsmouth Open Day on +AFs-xxxPodInvite.event+AF8-datexxx+AF0. 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: +AFs-xxxPodInvite.booking+AF8-refxxx+AF0. +BBMEDw-"
string(628) " W e l o o k f o r w a r d t o s e e i n g y o u a t t h e U n i o f P o r t s m o u t h O p e n D a y o n [ x x x P o d I n v i t e . e v e n t _ d a t e x x x ] . F o r t a l k t i m e s , l a t e s t t r a v e l a n d p a r k i n g i n f o s e e t h e g u i d e a t h t t p : / / b i t . l y / o p e n d a y - g u i d e . I f y o u w i s h t o a m e n d y o u r b o o k i n g y o u c a n l o g i n t o h t t p : / / j . m p / U o P O p e n u s i n g b o o k i n g r e f : [ x x x P o d I n v i t e . b o o k i n g _ r e f x x x ] . "
string(5) "UTF-7"
string(5) "UTF-8"