Forums / Install & configuration / Chinese Contents Needed on eZ publish 3 + MySQL (w/o Unicode)

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.