Jump to content

Problem With Persian Language In Php-To-Mysql


mostafatalebi

Recommended Posts

Hello I have to add persian language strings to the database out of a form through PHP.

Persian is right to left.

 

I have set sql table to utf8_persian, and when I use SQL direct interface to insert persian data, it works, and in HTML-PHP page I have many persian strings which all smoothly are rendered. But When I get the user data from a from in persian language, and through php mysqli statement want to add them into the table, they are added in strange characters.

I also have done mysqli_set_charset($link, "utf8");

What shall I do?

 

 

Thanks

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.