Question
Hi,
We have configured TWiki to support internationalization.
Now it works fine. We can add Chinese topics and view Chinese topics without problem.
The problem appears at edit page. Once we start to edit the page with Chinese characters, all the Chinese characters displayed as encoded format, that is &#xxxxx.
Is there any workaround for this?
Thanks so much!
Environment
--
SimonLi - 11 Aug 2005
Answer
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.
RichardDonkin is the internationalisation expert, but doesn't often browse the support pages. You might try mailing him directly.
--
CrawfordCurrie - 18 Aug 2005
You may have a mis-match between your browser character set and the site character set, so the brower has no choice but to generate the &#xxxx; characters (known as Numeric Character References) to get the characters through in some form - this is usually because there's some incorrect TWiki configuration affecting the browser that doesn't match the
$siteLocale in
TWiki.cfg, e.g. setting
%!CHARSET% explicitly (it's a read-only value, or would be if TWiki supported that

).
Please post your full
testenv output as an HTML attachment, as mentioned in
SupportGuidelines, and also provide the browser's auto-detected character encoding (i.e. the selected value in Character Encoding, e.g.
Chinese Simplified (GB2312) or
UTF-8).
The best approach is probably to use UTF-8 for everything - although this doesn't work for alphabetic
WikiWords using (say) French accents, it does work fine for Chinese, and in fact
InternationalisationEnhancements links to
http://www.pgsqldb.org/
, a TWiki site that uses Chinese with UTF-8. Have a look at their configuration, particularly
testenv
page (although they have overriden
$siteLocale in an odd way) and their
TWikiPreferences
page, and if all else fails email them (and please summarise here).
Unfortunately I don't have a lot of time at present, but if you provide more information, perhaps someone else can help as well.
--
RichardDonkin - 14 Sep 2005