I've created an inventory system in PHP that's used across North America so some users may have different character encoding (perhaps in Canada). The "Inventory Description" field ($_POST['InvDesc']
) is converted to UTF-8 to keep things standardized before inserting into a database:
iconv("Windows-1251", "UTF-8", $_POST["InvDesc"])
For some odd reason, one of my user's submitted a description with apostrophes and the string output to this:
I??™ve made the purchase but I don??™t have the receipt.
Any idea where my method of standardizing text is at fault? Thanks!