problem with persian characters

Questionsproblem with persian characters
Javad asked 10 years ago

Hi, Question marks are shown istead of Persian(Farsi) characters, (and my database encoding is utf8_general_ci) can you please tell me how to solve this problem?

1 Answers
Abu Ghufran answered 10 years ago

If your database is in utf8, try adding:

mysql_query("SET NAMES 'utf8'");

after database connection code.

Your Answer

15 + 3 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?