Search and UTF-8 doesn't work

Author Message

andreas spahr

Monday 17 November 2003 10:33:27 am

I'm using ez 3.2.1 with mysql 4.1 and the unicode support works fine.
But one problems remains:
if I enter an english search word, the search result is ok. if I enter a cyrillic word, the search result shows all objects.

Both search words are in the same class attributes. And it makes no difference, if one is a text line and the other is a xml text field.

can someone give me a hint?

regards

andreas spahr

Tuesday 18 November 2003 6:18:14 am

Hi,
maybe there is a problem with indexing the utf-8 characters. the table ezsearch_word contains only latin characters.

I suppose, that the search with utf-8 works, because there is a well known site, www.fast.no, where the search seems to work with japanes language.
but i have still no idea what the reason could be.

andreas spahr

Tuesday 18 November 2003 8:33:59 am

-- ok, now it works: I don't know really why, one reason could be to start this again:
myisamchk -r -q --set-character-set=utf-8 /var/lib/mysql/ezdatabase/ezsearch_*.MYI

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 19 2025 04:20:54
Script start
Timing: Jan 19 2025 04:20:54
Module start 'layout'
Timing: Jan 19 2025 04:20:54
Module start 'content'
Timing: Jan 19 2025 04:20:55
Module end 'content'
Timing: Jan 19 2025 04:20:55
Script end

Main resources:

Total runtime0.6475 sec
Peak memory usage4,096.0000 KB
Database Queries55

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0070 589.1563152.6250
Module start 'layout' 0.00700.0036 741.781339.4453
Module start 'content' 0.01060.6355 781.2266435.0547
Module end 'content' 0.64610.0013 1,216.28138.1641
Script end 0.6475  1,224.4453 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.5055160.0002
Check MTime0.00130.2023160.0001
Mysql Total
Database connection0.00110.164810.0011
Mysqli_queries0.606993.7356550.0110
Looping result0.00050.0713530.0000
Template Total0.590991.320.2955
Template load0.00200.304620.0010
Template processing0.588990.954920.2945
Template load and register function0.00010.018110.0001
states
state_id_array0.00110.163710.0011
state_identifier_array0.00150.237020.0008
Override
Cache load0.00160.2492170.0001
Sytem overhead
Fetch class attribute can translate value0.00040.069210.0004
Fetch class attribute name0.00110.175930.0004
XML
Image XML parsing0.00010.015510.0001
class_abstraction
Instantiating content class attribute0.00000.001030.0000
General
dbfile0.00090.1398100.0001
String conversion0.00000.001240.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 13
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs