character set problem (UTF-8, greek)

Author Message

Oliver Dahlmann

Monday 14 June 2004 3:26:28 am

I’m trying to set up a multilingual website with ezPublish 3.4, containing content in english, german and greek language on an Server running Mandrake 10.0 official Linux.

The Problem is that I only get ρϛ and so on on the browser-screen. I know that some guys had the same problem before, but all of the tips and tricks out of the forum and the ezPublish-documentation didn’t help me.

This is what I have done: Because of the greek language I decided to use UTF-8 charset.

I did the following things:

- I downloaded MySQL 4.1.2-alpha-standard for UTF-8 Support. I created the database with UTF-8 Support (create database bla character set utf8;). Seems to work fine.
- I downloaded the ‘php-mbstring-4.3.4-1mdk.i586.rpm’ and installed it. I also changed the default character set in /etc/php.ini.
- I edited the i18n.ini, the site.ini and the override.ini and set the character set from iso-8859-1 to utf-8.
- I created some additional directories under settings/siteaccess called website_de, website_en and website_el (for the greek language).
- I have made a ‘translation.ts’-file and moved it to share/translations/ell-EL, I also created a file named ell-EL.ini with the lines:

[RegionalSettings]
Country=Greece
LanguageName=Greek
InternationalLanguageName=Greek (Greece)

[Charset]
Preferred=iso-8859-15 # I also tried utf8 and utf-8

[HTTP]
ContentLanguage=ell-EL

# Rest of the file like the English version

If I watch the website website_el in my browser, ezPublish delivers the right (greek) translated content, but is not able to show the Cyrillic charset. Where the browser should get a ρ for example, it gets a ρ which will printed on the screen like &#961.

If I look into the sourcecode of the generated webside, I see the line
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

Has somebody an Idea what I&#8217;m doing wrong?

Thank you very much,

Oliver

Björn Dieding@xrow.de

Monday 14 June 2004 5:40:08 am

Please double check the following...

site.ini <- db charset set to utf8

check the admin area <- does it have settings for uft8 too?

Looking for a new job? http://www.xrow.com/xrow-GmbH/Jobs
Looking for hosting? http://hostingezpublish.com
-----------------------------------------------------------------------------
GMT +01:00 Hannover, Germany
Web: http://www.xrow.com/

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 01:17:27
Script start
Timing: Jan 19 2025 01:17:27
Module start 'layout'
Timing: Jan 19 2025 01:17:27
Module start 'content'
Timing: Jan 19 2025 01:17:28
Module end 'content'
Timing: Jan 19 2025 01:17:28
Script end

Main resources:

Total runtime0.4789 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0047 590.7109152.6406
Module start 'layout' 0.00470.0032 743.351639.4766
Module start 'content' 0.00790.4692 782.8281529.9844
Module end 'content' 0.47710.0018 1,312.812512.4531
Script end 0.4789  1,325.2656 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.6417160.0002
Check MTime0.00140.2847160.0001
Mysql Total
Database connection0.00060.124110.0006
Mysqli_queries0.434290.6608540.0080
Looping result0.00040.0883520.0000
Template Total0.450394.020.2251
Template load0.00200.410720.0010
Template processing0.448393.602120.2241
Template load and register function0.00010.024410.0001
states
state_id_array0.00100.210210.0010
state_identifier_array0.00110.226120.0005
Override
Cache load0.00160.3376320.0001
Sytem overhead
Fetch class attribute can translate value0.00050.104220.0002
Fetch class attribute name0.00110.223430.0004
XML
Image XML parsing0.00080.165220.0004
class_abstraction
Instantiating content class attribute0.00000.001530.0000
General
dbfile0.00090.1949160.0001
String conversion0.00000.002540.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
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
7content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
5content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 17
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs