Is it possible to run a Mutli-lingual site without using UTF-8?

Author Message

Brendan Pike

Saturday 18 October 2003 6:16:09 am

I wish to run a site in english and russian and don't really wish to upgrade to mysql 4.1. I have enabled Russian for testing and have found that text within the body areas works and translates correclty as do my folder names (which I use for menus) but I found that info-page titles don't and rather appear as "Ко.." etc, even though the body works. Also the language .ts file doesn't work and only gets rendered as question marks unless I switch UTF-8 on; but doing this causes the Online Editor to not load.

Can anyone explain if it is possible without moving to postgresql or
mysql4.1?

Thanks

www.dbinformatics.com.au

We are always interested in hearing from experienced eZ PHP programmers and eZ template designers interested in contract work.

Jan Borsodi

Wednesday 22 October 2003 5:47:29 am

It is possible to run multiple languages on one database without using UTF-8, however to do so you need to use a charset that supports all languages.
As for your site which needs english and russian you can use the koi8-r charset, it contains bother (basic) latin and cyrillic characters.

The unicode characters 1050 and 1086 can be found on this page:
http://www.alanwood.net/unicode/cyrillic.html
I also looked in the share/codepages/ko8-r file and the characters are present there (in hex).

--
Amos

Documentation: http://ez.no/ez_publish/documentation
FAQ: http://ez.no/ez_publish/documentation/faq

Brendan Pike

Sunday 09 November 2003 7:07:59 pm

Thanks Jan, only just found this response. (the forums should auto notify the authour of a forums thread IMHO)

I actually moved to MySQL 4.1 as I thought I had no other choice. So going through a little pain with upgrading our 2.2 sites at the moment. I have noticed that the share/codepages/utf-8 file is missing in the 3.2-3 release though. Does one exist I can download somewhere?

www.dbinformatics.com.au

We are always interested in hearing from experienced eZ PHP programmers and eZ template designers interested in contract work.

andreas spahr

Monday 17 November 2003 7:49:55 am

Online Editor and UTF-8, it works:
The Online Editor did not load, because the JavaScript file ezeditor.js is not an unicode file.
You have to save the file extension/ezdhtml/design/standard/javascripts/ezdhtml/ezeditor.js
with the normal windows editor as an utf-8 file (doing so with File->Save As->Coding: select utf-8)

After that I uploaded this file to the linux system via ftp and it worked!

Regards

Brendan Pike

Monday 17 November 2003 6:35:25 pm

At first I was confused what you meant by windows editor, then I realised even notepad was sufficient. You were correct of course and now it works fine!

Thanks so much Andreas.

btw, I still get the error, share/codepages/utf-8 is missing but it doesn't seem to stop anything working?

www.dbinformatics.com.au

We are always interested in hearing from experienced eZ PHP programmers and eZ template designers interested in contract work.

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 15:53:44
Script start
Timing: Jan 18 2025 15:53:44
Module start 'layout'
Timing: Jan 18 2025 15:53:44
Module start 'content'
Timing: Jan 18 2025 15:53:44
Module end 'content'
Timing: Jan 18 2025 15:53:44
Script end

Main resources:

Total runtime0.8138 sec
Peak memory usage4,096.0000 KB
Database Queries65

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0059 589.6016152.6563
Module start 'layout' 0.00590.0035 742.257839.5078
Module start 'content' 0.00940.8028 781.7656590.3047
Module end 'content' 0.81220.0016 1,372.070312.0938
Script end 0.8138  1,384.1641 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.4324160.0002
Check MTime0.00130.1590160.0001
Mysql Total
Database connection0.00080.095410.0008
Mysqli_queries0.757893.1216650.0117
Looping result0.00060.0792630.0000
Template Total0.778395.620.3891
Template load0.00190.229020.0009
Template processing0.776495.400920.3882
Template load and register function0.00030.031810.0003
states
state_id_array0.00130.164710.0013
state_identifier_array0.00180.225020.0009
Override
Cache load0.00160.1941280.0001
Sytem overhead
Fetch class attribute can translate value0.00050.058130.0002
Fetch class attribute name0.00140.171460.0002
XML
Image XML parsing0.00160.195430.0005
class_abstraction
Instantiating content class attribute0.00000.001660.0000
General
dbfile0.00370.4589170.0002
String conversion0.00000.001140.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
5content/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
4content/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: 19
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs