Thursday, 5 September 2013

Data in MySQL database doesn't show correctly in website

Data in MySQL database doesn't show correctly in website

I am trying to translate a English website to Persian. problems i was
facing was :
website were loading in Latin Unicode, so I had to change the charset to
utf-8 so contents show correctly in Persian
data in MySQL database are not correctly shown in website probably cause
of the Unicode problem
What I have done:
<?php ini_set('default_charset','utf-8'); header('Content-type: text/html;
charset=utf-8'); ?>
by this , problem #1 fixed
but for problem number 2 i still facing the issue, although i have altered
the tables to use utf 8 , but problem still persists. I gladly like to see
how anyone can help me with this. thanks alot in advance

No comments:

Post a Comment