Chinese Contents Needed on eZ publish 3 + MySQL (w/o Unicode)

Author Message

Kenneth Wong

Monday 28 April 2003 5:45:40 pm

From the setup guide's message and from postings here, it seems that Unicode support is not complete (or available?) when MySQL is used...

One of my sites needs Chinese language contents, and while standardizing on Unicode would be nice, I can settle with "hard coding" in Big5 now. I don't think I need the translation features -- actually I don't really understand this feature now...

The problem is (as mentioned in another posting), the browser (IE 6) automatically switches back to Western European coding on every page. What setup files should I change to set the default language for a certain site or Section?

Thanks in advance!

Gunnstein Lye

Friday 02 May 2003 5:20:53 am

To set the language of the admin site access: Edit settings/siteaccess/admin/site.ini.append, and add the following: (for norwegian language in this case)

[RegionalSettings]
# The primary language for your site
Locale=nor-NO
# Set this if the http locale in the locale is wrong
HTTPLocale=
# The default language for content objects
# Note: Changing this can have catastrophic consequences
# since there might not be any content objects with
# the selected language. Instead the content/translations
# page should be used for adding/removing translations.
ContentObjectLocale=nor-NO
# Controls how xml is stored in content objects.
# disabled - Store with utf8
# enabled - Store with current charset
# if any other text is entered it is assumed to be a charset and will be used
ContentXMLCharset=enabled
# Use either disabled to disable all text translation (faster) or enabled.
# Text translation is automatically disabled when the Locale is set to eng-GB
TextTranslation=enabled
TranslationCache=enabled
# Use either enabled to see which locale files are loaded or disabled to supress debug
Debug=disabled
# By enabling development mode all untranslated texts will be translated
# using the bork rules.
# See lib/ezi18n/classes/ezborktranslator.php for more information.
DevelopmentMode=disabled

(This is taken from settings/site.ini)
To make the browser show the right encoding, either set the preferred charset in the Chinese locale file, or in the HTTPLocale= statement above.

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:22:11
Script start
Timing: Jan 18 2025 16:22:11
Module start 'layout'
Timing: Jan 18 2025 16:22:11
Module start 'content'
Timing: Jan 18 2025 16:22:11
Module end 'content'
Timing: Jan 18 2025 16:22:11
Script end

Main resources:

Total runtime0.0183 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.0054 588.3672152.6563
Module start 'layout' 0.00540.0030 741.023439.4922
Module start 'content' 0.00830.0074 780.515689.4297
Module end 'content' 0.01570.0025 869.945330.3047
Script end 0.0182  900.2500 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002513.8429140.0002
Check MTime0.00116.2225140.0001
Mysql Total
Database connection0.00095.157210.0009
Mysqli_queries0.002614.132430.0009
Looping result0.00000.060010.0000
Template Total0.001910.410.0019
Template load0.00105.508010.0010
Template processing0.00094.884710.0009
Override
Cache load0.00073.872810.0007
General
dbfile0.00021.350980.0000
String conversion0.00000.035240.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.0002 secs