473,385 Members | 1,930 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

how? select statements matching accented characters


I'm running a MySQL database with one of tables holding the members of a
volleybal club in the Netherlands.

One the the fields in that table is holding the name of the players.

How do I search for all people with the name "Andre", with the important
remark, that it should also match "André"!! So with the letter "e" with
an accent "'" on it.
In the Netherlands those names can be spelled with and without the
accent and I do not always know how the name should be spelled correctly.

The query I run at the moment is:

SELECT * FROM member WHERE name='Andre';

But that does not match the names with accents on the characters.

Any help appreciated, regards,

Remco van den Berg

Jul 20 '05 #1
2 2627

"Remco van den Berg" <rv*****@kemphaan.dekelen.veldhoven.nl> skrev i en
meddelelse news:slrncm7rfl.1g5k.rv*****@kemphaan.dekelen.veld hoven.nl...

I'm running a MySQL database with one of tables holding the members of a
volleybal club in the Netherlands.

One the the fields in that table is holding the name of the players.

How do I search for all people with the name "Andre", with the important
remark, that it should also match "André"!! So with the letter "e" with
an accent "'" on it.
In the Netherlands those names can be spelled with and without the
accent and I do not always know how the name should be spelled correctly.

The query I run at the moment is:

SELECT * FROM member WHERE name='Andre';

But that does not match the names with accents on the characters.

Strange. What datatype is name?
I made at test with a varchar, and "rene" matched both "Rene" and "René"

But if I changed the varchar to "varchar binary" only perfect matches were
found.
You didn't do that?

If you were so strange to have declared name as a blob, you would have the
same problem.

On the other hand, if you have "rene" = "René" and don't want it, you can
use cast(name as binary)
Eg
.... where cast(name as binary) = "René"

Leif
Keuf
Jul 20 '05 #2
On Wed, 6 Oct 2004 18:21:34 +0200, Leif wrote:
How do I search for all people with the name "Andre", with the important
remark, that it should also match "André"!! So with the letter "e" with
an accent "'" on it.

Strange. What datatype is name?
I made at test with a varchar, and "rene" matched both "Rene" and "René"


OK, sorry, works now...
But now I have another question... :-)

I want to generate e-mail adresses out of the database in the format:

real.name <email@address>

But it is not allowed to use accented characters in this format.

Does there exist a MySQL statement which returns the name in which the
accented characters are converted to the non-accented characters?

I looked in the documentation but cannot find this...

Regards,

Remco
Jul 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Bernhard Georg Enders | last post by:
I'm using the php 'file' command to read the contents of an ASCII text file to a variable. The original text file contains some accented and special characters. The problem arises when I echo this...
1
by: Fuzzyman | last post by:
I've written an anagram finder that produces anagrams from a dictionary of words. The user can load their own dictionary. ( http://www.voidspace.org.uk/atlantibots/nanagram.html ) In order to...
2
by: nicolas_riesch | last post by:
I try to use python as the language in an asp page with Microsoft IIS 5.0. I have these two files, req_bad.asp and req_ok.asp ---------- req_bad.asp --------- <%@LANGUAGE=Python%> <%
4
by: Satish | last post by:
Hi Gurus, Please help me in this, I have tried all options available to me. (Option 1) I am making a simple request from VB.NET client to WBI generated WSDL and passing request parameters. The...
0
by: shintu | last post by:
Hallo, I am trying to write french accented characters é è ê in Excel worksheet using my perl script , But I am stuck here as I couldnt find a way of writing it !: My code: use strict;...
2
by: gsuns82 | last post by:
Hi all, I have to replace accented characters from a input string with normal plain text.I have coded as follows. String input = "ÄÀÁÂÃ"; input=...
4
by: gsuns82 | last post by:
Hi all, I am facing a strange issue. i.e: I have a jsp page with an input text field where the user can enter searching value even along with Accented Characters.After that i...
0
by: Jeremie Le Hen | last post by:
Hi list, (Please Cc: me when replying, as I'm not subscribed to this list.) I'm working with Unicode strings to handle accented characters but I'm experiencing a few problem. The first one...
2
by: Jeremie Le Hen | last post by:
(Mail resent with the proper subject. Hi list, (Please Cc: me when replying, as I'm not subscribed to this list.) I'm working with Unicode strings to handle accented characters but I'm...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.