Tags:
create new tag
view all tags

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

TWiki version: TWikiRelease02Sep2004
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: Redhat Linux 9
Web server: Apache 1.3.26
Perl version: 5.6.1
Client OS: Windows XP SP2
Web Browser: IE 6, Opera 8.02
Categories: Installation, Topic revisions, Missing functionality, Fatal error, Internationalisation, Localisation, Browser Issue

-- SimonLi - 11 Aug 2005

Answer

ALERT! 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 smile ).

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

Edit | Attach | Watch | Print version | History: r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r4 - 2005-09-29 - RichardDonkin
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.