Re: MYSQL doesn't 'see' accents
Posted by: Evi Wool
Date: June 26, 2010 06:12AM

I've looked into this further. The problem is more than I thought.
I used Load Data to import a text file where some of the text contained é. I checked the Notepad file and the accented words displayed correctly in the text file but when the text file was imported, each é was shown Ú, ç was displaced as c, è was displayed as þ
Here's the code I used to load the text file into the table
LOAD DATA LOCAL INFILE 'C:\\TblEnglish.txt'

INTO TABLE TblEnglish
FIELDS TERMINATED BY '\t'
ENCLOSED BY '"'
LINES TERMINATED BY '\r\n'
(EngID, English);

I am able to type these letters correctly in MySQL (using Alt and the number keypad) and UPDATE the records and they display fine so I don't see how mySQL's character set or the VarChar field datatype can be at fault. Is there a command line I need to change in the LOAD DATA code?

Options: ReplyQuote


Subject
Views
Written By
Posted
4654
June 23, 2010 05:31PM
1913
June 23, 2010 09:34PM
2054
June 24, 2010 12:00AM
2201
June 24, 2010 03:14AM
1982
June 24, 2010 05:59AM
2048
June 24, 2010 04:09PM
Re: MYSQL doesn't 'see' accents
2750
June 26, 2010 06:12AM
2092
June 26, 2010 12:04PM
2188
June 26, 2010 03:34PM
4043
June 26, 2010 06:46PM
2090
June 27, 2010 02:09AM
2055
June 27, 2010 12:48PM
2467
June 27, 2010 11:50PM
1943
June 28, 2010 12:13AM
2047
June 28, 2010 07:59PM
1890
June 28, 2010 09:27PM
2441
June 30, 2010 01:29AM


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.