[opencms-dev] Tradition Chinese (Big5) and English (UTF-8)
Thomas Adams
thomas.adams at interone.cn
Fri Oct 21 03:37:40 CEST 2011
Dear Enric,
Why you wanna have two different encoding ?
UTF-8 is for almost, if not for every language sufficient (so far I know
of no language), even Japanese which basically include traditional chinese char.
plus japanese characters.
I would recommend to just stick to UTF-8 for both languages.
Thomas Adams
Director Application Development
I O
Interone China // Office Beijing
1205-06, e -Tower, 12 Guanghua Road
Chaoyang District, Beijing 100020, China
北京天一国际广告有限公司
光华路丙12号数码01大厦1205-06室
100020 北京, 朝阳区
T. +86 10.65 91 3792 ext.3026
M. +86 137 177 48058
F. +86 10.65 91 3892
http://www.interone.cn<http://www.interone.cn/>
Please consider the environment before printing this e-mail.
This message and any attachments contain information, which may be confidential or privileged. If you are not the intended recipient, please refrain from any disclosure, copying, distribution or use of this information. Please be aware that such actions are prohibited. If you have received this transmission in error, kindly notify us by e-mail. We appreciate your cooperation.
From: opencms-dev-bounces at opencms.org [mailto:opencms-dev-bounces at opencms.org] On Behalf Of Albiach, Enric (MAD-MRM)
Sent: Freitag, 21. Oktober 2011 00:25
To: opencms-dev at opencms.org
Subject: [opencms-dev] Tradition Chinese (Big5) and English (UTF-8)
Hello,
I have to develop a webpage on English (UTF-8) and Traditional Chinese (Big5). So, I will create on OpenCms 2 folders:
· “en” for the English site with the following properties:
o locale = en
o content-encoding = utf-8
· “zh” for Traditional Chinese site with the following properties:
o locale = zh
o content-encoding = big5
The content will be the same on both sites. So, I will create sibling files of the type “Page with free text” on both folders.
What happens if I follow these steps?:
1. I create a “Page with free text” named “faq.html” on “/en” folder.
2. I create a sibling of that file on “/zh” folder with the same name “faq.html”.
3. I go to “/zh” folder and I edit the file “faq.html” (the Chinese language will be automatically selected on the Language dropdown list of the HTML editor) and save it. The file is stored in Big5 encoding.
4. I go to “/en” folder and I edit the file “faq.html” (the English language will be automatically selected on the Language dropdown list of the HTML editor) and save it. The file is stored is stored in Utf-8 encoding.
Three questions:
· After the step 4, will I lose the Big5 encoding of the Chinese section of the underlying XML file (created on the step 3)? Am I right?
· What is the best way to approach this development? Maybe, create separated files instead of siblings.
· Does anyone know if Traditional Chinese can be stored using UTF-8 encoding?
Thank you in advance.
Regards
Enric
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20111021/b43dcc25/attachment.htm>
More information about the opencms-dev
mailing list