In the browser I am converting html string to hex using javascript and then converting it back server side using PHP’s hex2bin.
Everything is working as it should BUT it is not converting some characters like £
whose hex is a3
, PHP’s hex2bin
renders it as �
in the browser.
There are many other such hex codes hex2bin
doesn’t convert. Am I doing something wrong or is there some other library that I can use to get full hex coverage?