extracting unicode form a flat file to insert in db
Posted by: tashfeen ekram
Date: September 05, 2006 11:31PM

i am trying to extract unicode form a flat file that i wiould like to insert in a mysql database.

however, i am not usre how to exactly excract the data properly. each line in the text file contains on name in arabic for ex:
معالم السلوك للمرأة المسلمة

but when i do a fgets on the file and then echo it i get the following output:
معالم السلوك للمرأة المسلمة ㄊ㈳愬⵬慑汵愠⵬慍爧景映⁩慆桤污䴭❡潲ⱦⰱ〲〰〬ㄮⰲ⸱ⰵ⸲㜵㐱㠲㜵ⰱ਍䐊灵楬慣整攠瑮祲✠〲㄰‧潦⁲敫⁹

where is that extra stuff coming from?

Options: ReplyQuote


Subject
Views
Written By
Posted
extracting unicode form a flat file to insert in db
2398
September 05, 2006 11:31PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.