Wrong sort order of national characters

Author Message

dexen deVries

Tuesday 06 February 2007 3:43:59 am

Hi,

I'm using eZ Publish 3.8.6 with a MySQL DB engine, in UTF-8 setup. The site in question in Polish, nodes fetched with

{fetch( 'content', 'list', hash( 'parent_node_id', SOME_ID, 'sort_by', array( 'name', 1 )  )  ) } 

are sorted in wrong order:
a...z first, and national characters afterwards, while proper order would be
a, [a_ogonek], b, c, [c_acute], d, e, [e_ogonek], f, (...)

The database itself is set to ``utf8_general_ci'' collation, but eZ P's tables are sporting ``utf8_bin'' .

Is this behaviour normal to eZ P, or do I fill a bugreport?

Is it safe to change collation of the tables? Or is it pointless?

Anja Lundin

Tuesday 24 March 2009 1:10:59 am

Hi dexen!
I know this is an old post, but I had the same problem as you (but with swedish Å Ä Ö) and I looked for a solution in the forum and found nothing.

I solved my problem with changing the collation of the database and all it's tables. In my case to utf8_swedish_ci and it works great after this!

Best regards!
Anja Lundin, Novitell AB

------------------------------------
Anja Lundin
Developer, Novitell AB
Sweden

www.novitell.se

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 16:18:44
Script start
Timing: Jan 18 2025 16:18:44
Module start 'layout'
Timing: Jan 18 2025 16:18:44
Module start 'content'
Timing: Jan 18 2025 16:18:44
Module end 'content'
Timing: Jan 18 2025 16:18:44
Script end

Main resources:

Total runtime0.0133 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0055 588.0078152.6250
Module start 'layout' 0.00550.0025 740.632839.4453
Module start 'content' 0.00790.0037 780.078189.4297
Module end 'content' 0.01160.0016 869.507830.3047
Script end 0.0132  899.8125 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002216.7752140.0002
Check MTime0.00107.4658140.0001
Mysql Total
Database connection0.00085.951410.0008
Mysqli_queries0.002821.032430.0009
Looping result0.00000.061210.0000
Template Total0.001410.210.0014
Template load0.00074.904710.0007
Template processing0.00075.295010.0007
Override
Cache load0.00053.530610.0005
General
dbfile0.00032.255480.0000
String conversion0.00000.045040.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs