Problem in farsi mysql database | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Problem in farsi mysql database

I get my input in html and php and send it to mysql database but when they write in farsi(persian)(language) it gives me these codes for a name مس ..... I searched and it said its a code of each letter in html i setted meta charset utf 8 but without any changes i really got confused that what should i do 🤦‍♂️

25th Sep 2019, 10:07 PM
Mostafa Mousavi
Mostafa Mousavi - avatar
1 Answer
+ 1
You need set charset to utf-8 in mysql, php and apache settings. Check this https://stackoverflow.com/questions/32967768/charset-utf-8-and-php-header-not-working
26th Sep 2019, 11:22 AM
Arman Sarsenov