utf 8 - PHP remove special characters to make sure a string is utf-8 encoded -
i @ lost of how remove special characters string make sure chars supported uft-8 + french chars included. below base64 string has special chars , sanitizing function has failed remove them , causing text not print when using fpdf cells etc. if decode string @ https://www.base64decode.org/ see special chars. // sanitizing function static function remove_none_word_chars($string) { return preg_replace('/[^a-za-z0-9`_.,;@#%~\’\'\"+*\?\^\[\]\$\(\)\{\}\=!\<\>\|\-:\s\/\\sàâçéèêëîïôûùüÿñæœ]/ui', '', $string); } 74knifn1cgvydmlzzxigbgugdhjhdmfpbcbkzsbs4oczzw5zzw1ibgugzhugcgvyc29ubmvsigrlihbyb2r1y3rpb24sigrligzigjllbnryzxrpzw4gzxqgzgugbgegbwfpbnrlbmfuy2ugc3vyigxlihf1yxj0igrlig51axqgzw4gdgvuyw50ignvbxb0zsbkzsbsysbjb252zw50aw9uignvbgxly3rpdmu7cu+cpybbc3n1cmvyihvuzsbib25uzsbnzxn0aw9uigrligzigjllbnnlbwjszsbkzxmgb3ddqxjhdglvbnmgzgugbokamxvzaw5lowrvgqcgugxhbmlmawvyigrlcybvcmopcmf0aw9ucyblbibmb25jdglvbibkzxmgym9ucybkzsbjb21tyw5kztsk74kniefwcg9ydgvyigxl...