473,836 Members | 2,174 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 4336
> 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
6368
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
8762
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
2483
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
1514
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
9757
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
10301
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
2667
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
6847
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
3370
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
9656
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10819
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10526
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
10570
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10240
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9355
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5811
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
4000
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3100
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.