I have a litle problem with my text encoding, when user filed textarea field with incoming information by mail (copy&paste)
like that Also – can you give me some...
or line item – QA coverage
and submited it, in my $_POST veriable text looks like line item – QA
, Also – can you give me some...
my site collatation is latin1_swedish_ci.
Any body know, how avoid this? Thanks. Best regards, Anton.
The –
is the en-dash (not your typical -
"minus"), which is a three-byte character in UTF-8. If its display screws up, it means you're not handling UTF-8 correctly, or more generally, you're not handling encodings correctly. See Handling Unicode Front To Back In A Web App for a complete introduction.