1

I have a <textarea> element in my <form> which is supposed to save arabic text into a mysql database.

I have set the charset of my page as <meta charset='UTF-8'> I have also set the accept-charset = "UTF-8" in my <form> tag. And I have set the collation of the column in my database to utf8_unicode_ci

But whenever I submit the form, my database is saving the arabic text like so:Ø¨ÙØ³Ù’م٠اللّ

Instead of saving it like so: كيف حالكم

I am using php as my backend. Can anyone guide me as to where I am going wrong?

Shah Quadri
  • 219
  • 1
  • 2
  • 11

0 Answers0