0

I am making an android application that sends some TEXT to server and other people can see those Text but the problem is here when I send the TEXT it looks like this (سلام به همه) in the MYSQL table inside the server and it shows the text like this (???????????) (By the way I am writing the text in Persian) to the people who get the text and also when I add some records manually inside the database it also shows like question marks on the PHONE.

I tried puting database and tables Collation to utf8_general_ci and utf8_persian_ci but it did not work.

James
  • 1,653
  • 2
  • 31
  • 60

1 Answers1

2

How do you send the data to the server, is it via a PHP Service? If so, I once had a problem with Cyrillic and setting the connection itself to UTF8 helped.

Here's the statement if you are using mysqli but I think there's an alternative for PDO as well.

mysqli_set_charset($con,"utf8");
iBobb
  • 1,140
  • 1
  • 14
  • 35