I’m facing an issue with some accented characters (like ‘é’, ‘è’, ‘à’, …) in an URL and I wanted to convert them to an hex value in PHP. I found nothing on Google so I have finally created my own function for my needs : function encodeURIHex($str) { $len=strlen($str); $ret= » »; for ($i=0; $i 191 && […]