php - MYSQL texts looking weird -
this question has answer here:
- utf-8 way through 14 answers
i making android application sends text server , other people can see text problem here when send text looks (سلام به همه) in mysql table inside server , shows text (???????????) (by way writing text in persian) people text , when add records manually inside database shows question marks on phone.
i tried puting database , tables collation utf8_general_ci , utf8_persian_ci did not work.
how send data server, via php service? if so, once had problem cyrillic , setting connection utf8 helped.
here's statement if using mysqli think there's alternative pdo well.
mysqli_set_charset($con,"utf8");
Comments
Post a Comment