Alphabetizing users with names containing accented character

Are you an Editor, Author, or Journal Manager in need of help? Want to talk to us about workflow issues? This is your forum.

Moderators: jmacgreg, michael, vgabler, John

Forum rules
The Public Knowledge Project Support Forum is moving to

This forum will be maintained permanently as an archived historical resource, but all new questions should be added to the new forum. Questions will no longer be monitored on this old forum after March 30, 2015.
Posts: 77
Joined: Mon Jun 07, 2004 1:24 pm
Location: Toronto, Canada

Alphabetizing users with names containing accented character

Postby osborne » Wed Jun 14, 2006 7:51 pm

I have modified the list of users (for the journal administrator) to be alphabetical by last name, but 'order by last_name' in the MySQL (version 5) query doesn't treat accented characters correctly. I guess I don't have the character sets specified correctly. I've looked at the MySQL manual and searched previous posts, but haven't found an answer.

Specifically, the name 'Börgers', which is stored in the database as 'Börgers' (but appears correctly on the web pages), is ordered between Battigalli and Becker. In I have
client_charset = utf-8
Is there an easy solution? Do I need to convert the database table somehow?

Posts: 10015
Joined: Wed Aug 10, 2005 12:56 pm

Postby asmecher » Wed Jun 14, 2006 10:12 pm

Hi Martin,

You'll have to enable the connection_charset and database_charset options in This requires MySQL >= 4.1.1 or PostgreSQL >= 7.1.

Additionally, the next release of OJS will contain alphalists as a locale string, so you'll be able to jump to accented characters as well if (a) you add them to the alphalist and (b) you have the options above enabled.

Alec Smecher
Open Journal Systems Team

Return to “OJS Editorial Support and Discussion”

Who is online

Users browsing this forum: Baidu [Spider] and 1 guest