From: Boris Z. <bz...@2b...> - 2004-06-24 23:43:20
|
Hi Sean, Am Donnerstag 24 Juni 2004 07:38 schrieb Sean Lee: > Hello All, > > I am wondering if pagekit supports, or if it's not the pagekit, how to make > general system to support CJK charset in Content model. I need to have Just to be sure, by content you mean <PKIT_CONTENT sommething> right? > Content XML file to have Chinese, Korean, Japanese characters and switch I think it should work, but these charsets are unknown to me. Lets try it out. - First I do not know the charsets, how are the names for the three? - Is it possible to express all three in one common charset (UTF8 perhaps?)? my favorite charset is ISO-8859-1 or nowdays ISO-8859-15. > between them with pkit_lang. > a quick test looks good to me. See the attached files: jap.xml jap.tmpl Copy jap.xml into your Content directory. Copy jap.tmpl into View/Default. Then call http://your_site/jap and you get either the japan version if your favorite lang is ja or the default en version. To force a special version set pkit_lang either with pkit_lang in the url ( http://your_site/jap?pkit_lang=ja ) or from your modelcode. Perhaps you need to change default_input_charset and default_output_charset in your Config.xml to UTF8. There are some more pitfalls that you may encount later, while uploading someting to your server via areatext and serialize data to a database or XS ( C ). If you lose the UTF8 flag you need to restore it yourself. But this is another story. Let me know how it works so far. If you have any difficulty, I try to help on the charset issue. > Thank you, > Sean > -- Boris |