1

I've got some problems with the codification on my db. Db and tables are set with utf8_general_ci, and all PHP web pages have some header with this encoding. From FORM I've to insert something, that is perfectly shown on web page, but on db figures like : à weà rewà fà dsà fewÃ

After db connection I've made some:

$connection->set_charset("utf8_general_ci");

Someone can help me with this? Thank you everyone!!

jlb
  • 19,090
  • 8
  • 34
  • 65
Altair
  • 47
  • 7

1 Answers1

0

From your insert query you can use utf8_encode($_POST['form_data']); which encode special characters.

makjal
  • 15
  • 1
  • 9
  • Thanks for your comment...i've tried, result on db changed, but is like this: ààààasàfàeàeèè – Altair Mar 09 '15 at 11:45
  • ohh..don't know much abt is. but i used collation utf8_unicode_ci – makjal Mar 09 '15 at 11:54