PHP convert latin1 to utf8 Persian txt

Posted by root on Stack Overflow See other posts from Stack Overflow or by root
Published on 2012-10-28T10:14:03Z Indexed on 2012/10/28 11:01 UTC
Read the original article Hit count: 314

Filed under:
|
|

I now work on a web-base PHP app to work with a MySQL Server database .
database is with Latin1 Character set and all Persian texts don't show properly .
database is used with a windows software Show and Save Persian texts good .
I don't want to change the charset because windows software work with that charset .

Question:
how can convert latin1 to utf8 to show and utf8 to latin1 for saving from my web-base PHP app , or using Persian/Arabic language on a latin1 charset database without problem ?

note:
one of my texts is ???? ?????? when save from my windows-based software save as ÇÍãÏ ÑÍãÇäí and still show with ???? ?????? in my old windows-based software

image : image of database , charsets,collation and windows-based software image of database , charsets,collation and windows-based software

© Stack Overflow or respective owner

Related posts about php

Related posts about utf-8