Re: MYSQL doesn't 'see' accents
Posted by: Evi Wool
Date: June 27, 2010 11:50PM

Thanks Rick, the query gave the results:
+-----------+----------------------+-----------------+----------------------+
| english | hex(english) | length(english) | char_length(english) |
+-----------+----------------------+-----------------+----------------------+
| clientÞle | 636C69656E74C3A86C65 | 10 | 9 |
+-----------+----------------------+-----------------+----------------------+
The word should have been clientèle (naturally, the modern spelling, clientele, was one of the skipped rows).
I don't understand anything useful about hex data but the length and char_length values explains why apparently null fields in another table have a LENGTH of 1 rather than 0.
And the plot thickens. Following the suggestions on another site
http://www.blueboxgrp.com/news/2009/07/mysql_encoding I edited my.cnf so that it connected as utf8, created a completely clean database and table using the default settings and tried to import the same data from my Tab Delimited text file. This time I got even more skipped rows and also 39 warnings about Incorrect String Values.
I repeated this whole procedure with the server setting being utf but specified the COLLATE as utf8_bin but the results were exactly the same. Only when the server was the default setting of latin 1 and the database also used the default settings could I import the data without the Incorrect String Values errors and only the 'duplicate' rows being skipped.
So far, the only conclusion I can draw is that I have no real choice but to import the text using the default latin character set on server and database, alter tables and database to utf8_bin and then edit the text in my BASE front end. The article above refers to 'mangled' text but there seems to be no way around this. I would understand this if I was trying to import say Chinese or Hebrew but find it surprising that this happens with what is actually English text with accented letters.
I see that one letter on this subject warned darkly that altering the database and all its tables to UTF8_bin could cause 'other problems' but failed to specify what they would be so no doubt I will be writing back as they occur. Thanks for spending time on this, Rick. So far, I've not seen any solutions online that actually worked.

Options: ReplyQuote


Subject
Views
Written By
Posted
4683
June 23, 2010 05:31PM
1929
June 23, 2010 09:34PM
2066
June 24, 2010 12:00AM
2208
June 24, 2010 03:14AM
1993
June 24, 2010 05:59AM
2061
June 24, 2010 04:09PM
2762
June 26, 2010 06:12AM
2102
June 26, 2010 12:04PM
2199
June 26, 2010 03:34PM
4058
June 26, 2010 06:46PM
2103
June 27, 2010 02:09AM
2069
June 27, 2010 12:48PM
Re: MYSQL doesn't 'see' accents
2478
June 27, 2010 11:50PM
1958
June 28, 2010 12:13AM
2061
June 28, 2010 07:59PM
1902
June 28, 2010 09:27PM
2451
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.