View Single Post
  #1 (permalink)  
Old 06-21-09, 05:43 AM
john_zakaria john_zakaria is offline
Newbie Coder
 
Join Date: Nov 2008
Posts: 36
Thanks: 0
Thanked 0 Times in 0 Posts
problem when importing

i am importing a csv file that contains a unicode data using php my admin...

i import it but it is not displayed as uniocde for example :

al-Lujū΄ ilá Allāh : is shown as al-Luju?? il? Alla?h :


i tried to set the character

mysql_query("set names utf8");

note that when inserting al-Lujū΄ ilá Allāh from php my admin it is shown correctly but when importing it from a file named: 2fields.csv
(a csv file) it is not shown as unicode data
it is shown as al-Luju?? il? Alla?h

can anyone help me to import unicode csv file??

thnx alot
Reply With Quote