Possible Duplicate:
error when uploading string with special characters
I have a string say
$what = suggests ‘
i am not able to upload $what as it is, it throws decode error
I also tried using url_encode, url_decode, htmlspecialcharacters,utf8 etc.,but for no use.
url_encode, url_decode makes it as following:
suggests ?? but not as suggests ‘
What should i do for $what to be as
suggests ‘
Using Hixie’s decoder, it’s easy to check that ‘ is the UTF-8 encoded representation of U+2018 LEFT SINGLE QUOTATION MARK (‘) misinterpreted as separate bytes if were windows-1252 encoded. It’s more difficult to say why this happens—insufficient information about context and code.