Mailing List
Home
Forum Home
MySQL General - General MySQL discussion
MySQL++ - Programming with the C++ API to MySQL
MaxDB - Everything about MaxDB, formerly known as SAP DB
ODBC - ODBC with the MySQL Connector/ODBC driver
MySQL on Win32 - Runing MySQL on Windows 9x/Me/NT/2000/XP
Java Help - Mostly related to the MySQL Connector/J driver
Perl - Perl support for MySQL with DBI and DBD::mysql
GUI - MySQL GUI Tools
Announcement
Subjects
Subject: mysql openssl Question
ERROR 1045: Access denied for user: 'root@localhost ' (Using
password: NO)
Update one field with more fields from another table
Subject: Getting Identity after INSERT
ERROR 2002: Can 't connect to local MySQL server through socket
mysql test 4 1 fails with the gis test
Subject: MySQL Cluster Software
Downgrade Mysql from 4 to 3 23
Mysql 4 0 Oracle Stored Procedure Trigger Conversion
Can 't access mysql after kernel upgrade
Executing MySQL Commands From Within C Program
Comparing and writing out BLOBS
Subject: Re: Preventing Duplicate Entries
FULLTEXT query format question
Strange behavior, Table Level Permission
Does the binary log enabling affect the MySQL performances?
mysql:it 's a db not a dbms how it 's possible?!
mysql have same function mthod as Oracle decode()
 
utf8 queries

utf8 queries

2007-11-06       - By Russell E Glaue

 Back

I assume your collation on the database table 'city' is utf8_general_ci
And also check the columns of the database table 'city' to ensure they are also
utf8_general_ci.

The database, its tables, and the tables individual columns can all have a
different collation.

Last, ensure that you set utf8 for your client connection as well.

http://dev.mysql.com/doc/refman/5.0/en/charset-connection.html


-RG



Ovidiu Farauanu wrote:
> Hello.
>
> I have a problem with queries on a utf8 table. For example when I send
> select SQL_CALC_FOUND_ROWS * from city where country_code = 'pl' and
> language_code = 'en' and ( city_name like 'A%' or city_name like "'A%"
> ) order by city_name
> to MySQL, it returns to me not only cities that begin with capital letter A
> but also with latin capital letter A with ring above, with diaeresis,
> with acute and etc.
> I don't want that. I will query it to do this.
>
> Please help. How so query to get only cities that begin with A and
> only those that begin with A
> ??
>


--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/mysql?unsub=mysql@(protected)