0

I have a problem with PHP.
I have a form with input named text.
If I send a word with accenture letters like "coupè", the $_POST['text'] return me "coupè" also utf8_encode($text).

How is possible? The Db is utf-8 bin.

hakre
  • 193,403
  • 52
  • 435
  • 836
Beb Pratza Ballus
  • 221
  • 1
  • 5
  • 14
  • That looks like valid UTF-8, only you are looking at it with something which isn't properly configured for UTF-8. Maybe your terminal is Latin-1? – tripleee Dec 16 '13 at 10:49
  • If you are looking for *coupé* that's spelled with a grave accent, not acute. – tripleee Dec 16 '13 at 10:50
  • no it's all for UTF-8, I don't understand why happen – Beb Pratza Ballus Dec 16 '13 at 14:02
  • Correction, it's double-encoded. The (pseudo-)word **coupè** is `coupè` in Latin-1, and if you recode that from Latin-1 to UTF-8 a second time, you get `coupè`. Still the `ƒ` is unaccounted for. – tripleee Dec 16 '13 at 19:37

0 Answers0