-1

I'm using utf8_encode || utf8_decode ..., but I'm struggling to handle some special characters (é, è ê ... ,)

I'm using php.

Could someone help?

Gert Grenander
  • 16,866
  • 6
  • 40
  • 43
Mamadou
  • 2,177
  • 5
  • 31
  • 43
  • Your question isn't very precise. You may first want to check if you're able to put static text on the page. Verify that your editor use UTF-8 encoding and that the page is also served as with `Content-Type text/html; charset=utf-8` or use an equivalent `` tag. – Alex Jasmin Oct 25 '10 at 08:52
  • I a form that get data and a function that save all in a db. When the user put for exemple " d'actualitée" it is saved as "d'actualité v4" – Mamadou Oct 25 '10 at 09:02
  • If user input is utf-8 I guess there is a mismatch between your data encoding and your database client charset. What sort of db are you using ? – MatTheCat Oct 25 '10 at 09:06
  • is mySQL set to save data as UTF-8 (I think its the default anyway) and if you get the result that's garbled in phpMyAdmin then it's the phpMyAdmin's problem. It doesn't use the meta to specify UTF-8 so it displays garbled text. IT should be fine if you echo the results on a webpage with the meta tag saying charset=utf-8 – netrox Oct 25 '10 at 09:34

1 Answers1

0

might wanna use html ascii instead of the actual special char if you having problems with it

http://www.asciitable.com/

A-R
  • 81
  • 5