Welcome to the dBforums forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact support.

If you prefer not to see double-underlined words and corresponding ads, place your cursor
here for ContentLink opt out.

Go Back  dBforums > Database Server Software > MySQL > Convert .txt to MySQL

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-09-07, 03:42
tanha tanha is offline
Registered User
 
Join Date: Jul 2007
Posts: 27
Convert .txt to MySQL

Hello everybody,
I have this text file, and when I import them into mysql through phpMyAdmin, everything is ok, but the persian (Farsi) not shown correctly, also I use ' utf8_persian_ci ' collation, can anyone kindly plz convert this file into MySQL that farsi data shows correctly too?

NOTE:
farsi "persian" is a language
Attached Files
File Type: zip tblDic.zip (1.13 MB, 382 views)
Reply With Quote
  #2 (permalink)  
Old 10-09-07, 22:43
thrash.zhai thrash.zhai is offline
Registered User
 
Join Date: Oct 2007
Posts: 3
maybe the type of file is incorrect
Reply With Quote
  #3 (permalink)  
Old 10-10-07, 04:36
healdem healdem is online now
Jaded Developer
 
Join Date: Nov 2004
Location: out on a limb
Posts: 5,460
how do you know its not storing things correctly in MySQL?

is it possible that the client you are using to view the data doesn't understand which character set to use?
__________________
Warning
May! contain traces of NUT. people with NUT allergies should not pay attention to any of the above
Reply With Quote
  #4 (permalink)  
Old 10-10-07, 10:16
Pat Phelan Pat Phelan is offline
Resident Curmudgeon
 
Join Date: Feb 2004
Location: In front of the computer
Posts: 9,573
The Unicode data in your TXT file is a mix of Roman and Cyrillic. There are no character I recognize as Farsi (Arabic characters) in the portion of the file that I scanned.

Does the contents of this file appear as English/Farsi on your screen?

-PatP
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On