How encode weird ASCII hex to utf8?

I have a string which contains ASCII hex characters(=E4, =E5, =3D etc). I wonder how i can convert all these characters to normal characters(utf8?)
link

things ive tried that did not work:

header('content-type: text/plain;charset=utf-8');

utf8_encode($string);

rawurlencode($string);

html_entity_decode($string, ENT_COMPAT, 'UTF-8');

html_entity_decode($string, ENT_QUOTES, 'UTF-8');

iconv('UTF-8', 'ISO-8859-1//TRANSLIT//IGNORE', $string);

iconv('ISO-8859-1', 'UTF-8//IGNORE', $string);

I hope that someone can help me

ASCII is just the encoding of characters, changing that to UTF8 wouldn’t change anything. E4 will stay E4, both in ASCII and UTF8, while the bits needed to store this information increase. With UTF8 you only have more space for a larger set of characters.

You could convert HEX to binary, decimal, etc.

https://www.php.net/manual/en/function.hexdec.php

Sponsor our Newsletter | Privacy Policy | Terms of Service