473,978 Members | 2,423 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ORDER BY with accents

When I sort texts with accents the accents end up in the end instead of near
the same text without accent.

For example, the 3 composers Händel, Haydn and Holst will appear in the
order Haydn, Holst, Händel.

Is it possible to instruct MySql to ignore the accents so that Händel comes
in first instead of last?

Thanks in advance,
Wim
Jul 19 '05 #1
4 4347
> When I sort texts with accents the accents end up in the end instead of near
the same text without accent.

For example, the 3 composers Händel, Haydn and Holst will appear in the
order Haydn, Holst, Händel.


You'll want to review the MySQL manual at
http://www.mysql.com/documentation/m...l#Localisation

Take a particular look at the German character set section.

http://www.mysql.com/documentation/m..._character_set

Lukas
Jul 19 '05 #2
> When I sort texts with accents the accents end up in the end instead of near
the same text without accent.

For example, the 3 composers Händel, Haydn and Holst will appear in the
order Haydn, Holst, Händel.


You'll want to review the MySQL manual at
http://www.mysql.com/documentation/m...l#Localisation

Take a particular look at the German character set section.

http://www.mysql.com/documentation/m..._character_set

Lukas
Jul 19 '05 #3
> When I sort texts with accents the accents end up in the end instead
of near
the same text without accent.

For example, the 3 composers Händel, Haydn and Holst will appear in the
order Haydn, Holst, Händel.


You'll want to review the MySQL manual at
http://www.mysql.com/documentation/m...l#Localisation

Take a particular look at the German character set section.

http://www.mysql.com/documentation/m..._character_set

Lukas
Jul 19 '05 #4
> When I sort texts with accents the accents end up in the end instead
of near
the same text without accent.

For example, the 3 composers Händel, Haydn and Holst will appear in the
order Haydn, Holst, Händel.


You'll want to review the MySQL manual at
http://www.mysql.com/documentation/m...l#Localisation

Take a particular look at the German character set section.

http://www.mysql.com/documentation/m..._character_set

Lukas
Jul 19 '05 #5

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

Similar topics

2
6382
by: c w | last post by:
Can anyone point me in the right direction? Using Oracle 9i, Pro*C and Excel. I am trying to print french accents from the Oracle DB using Pro*C to extract the necessary info and sent the result to Excel but at the moment I cannot get the accents to show in Excel. The NLS_LANG is America. Any help would be appreciated. Thanks. Colin
0
657
by: Wim Roffal | last post by:
When I sort texts with accents the accents end up in the end instead of near the same text without accent. For example, the 3 composers Händel, Haydn and Holst will appear in the order Haydn, Holst, Händel. Is it possible to instruct MySql to ignore the accents so that Händel comes in first instead of last? Thanks in advance,
3
8781
by: Cherif Diallo | last post by:
Hi I have a trivial question for the experts. I would lilke to read be able to read a text file that could contain french characters with accents. I'm opening the file with the File.openText(...) and then loop through the file with the Readline function into a string variable. But everytime a hit a char with an accent I loses it. Example : père reads pre
3
2493
by: jim | last post by:
Hi, I can't gte accents in the subject and body fields of an e-mail ! This is my code : document.location.href = 'mailto:webmaster@mysite.com?subject=the subject is éléphant&body=elephant is said éléphant in french !' ; When the e-mail appears, I get weird characters instead of the wanted clean accents.
0
1525
by: Johnny Jörgensen | last post by:
Has anyone got a good idea as to how I can systematically remove accents from characters in a string? I.e. I want to do a function that can change "Ségolène Royal" (just to take a current example) to "Segolene Royal" and the Swedish "förära" till "forara" etc... It is not important which language the string is in - all accents should be removed. Of course I can do a replace for each character, but if theres an easier way that will...
5
9782
by: Amy L. | last post by:
I am at an absolute loss on what is going on here. I have a text file with some Spanish writing. Some of the characters have accents. I have not found anyway to read this text file and echo the output to the console showing the accents. I have tried using UTF-8 but it does not like the accent characters. It basically converts Añoro esta situación
7
10311
xNephilimx
by: xNephilimx | last post by:
lHi guys! I'm having a little problem that's getting on my nerves, I couldn't find a solution, I also tryed googling it and I found nothing... (my field of expertise is in AS 2 and 3, but I still lack some JavaScript solid knowdlege) The problem is that when I try to send a form's content with Ajax (I'm using the prototype library), for some reason the latin characters (accents and stuff, like áéíóú) turn a mess when I try to store them in...
1
2675
by: theduffman | last post by:
Hi, I'm trying to write code to update nightly some NHL stats. Everything works, except for names with an accent, e.g. José Théodore. This won't generate a match no matter what I try. I've edited the code to show the relevant pieces. What I use: $data = file_get_contents('http://avalanche.nhl.com/team/app?service=page&page=Stats'); $regex = '/'.str_replace(" ", "\s", $row2).'<\/a>\n<\/td>........... preg_match($regex, $data,...
2
6857
by: LittleLeopard | last post by:
Hi, I hope somebody can help me. I’m working on this website English/Portuguese and for example on this page http://www.goulartfilmes.com/en//IvyGoulart/tabid/54/Default.aspx we can see the Portuguese accents on the page without any problems, but if click on the pictures, where I have names in Portuguese with accents (example “The Curator” enlarged photos 3rd pic) Its html+flash+xml and it shows me the funny symbols. I've already checked the xml...
5
3377
by: arty | last post by:
i have set up a xhr , all the accents on the page are showed ok on ff an safari function _cms() { cms.open("GET", 'cms.php', true); cms.setRequestHeader('If-Modified-Since','Wed, 05 Apr 2006 00:00:00 GMT'); if (cms.overrideMimeType) { cms.overrideMimeType('text/html; charset=ISO-8859-1') } else{cms.setRequestHeader("Content-type", "text/html; charset=ISO-8859-1"); } cms.onreadystatechange = function() { if(cms.readyState ==...
0
10358
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
11422
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8465
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
7620
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
6424
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
6562
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
5162
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4742
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3773
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.