Question
pls. help me to enable Central European characters on TWiki ? at this moment the special characters are changing to html entities after I safe the page
In fact I want to host TWiki webs in english, swedish, german and czech language.
Environment
--
MartinMinka - 23 Aug 2006
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.
You need to enable internationalization (at the cost of some performance). See
InstallingTWiki and
InternationalizationSupplement.
--
PeterThoeny - 29 Aug 2006
Update: Having looked at the relevant
section of the Internationalisation Enhancements page, there's a useful link to
documentation
on which character sets are used where. Seems like you would need to use ISO-8859-1 for English, Swedish and German (or -15 to include Euro) and ISO-8859-2 for Czech.
One way to do this at present is to run two separate TWikis, with separate webs. Once we have
UnicodeSupport, you would be able to migrate your data into one TWiki, but there's no active work on this support at present.
One other solution is to run using UTF-8, but that then means that
WikiWords won't be linked automatically (other than plain ASCII words of course) - you would have to link using
[[...]] at all times, e.g.
[[PavučinecPly¨ový]] rather than PavučinecPly¨ový, to use a Czech example from
http://cs.wikipedia.org/
. However, that's not so different to other Wikis with Unicode support, such as
MediaWiki, so it's not as bad as it might seem.
Overall, I think the best solution is to use UTF-8 (see various TWiki pages on this, particularly those linked from
InternationalisationIssues), get some experience using this, and see if you can encourage a TWiki developer to work on full Unicode support (or start doing itself if you have some programming ability!) There are quite a few TWiki sites using UTF-8 today for Chinese, Japanese and so on.
--
RichardDonkin - 03 Sep 2006
UTF8 i a good way for me to go. And it works after I set {Site}{Locale} to en_US.utf8.
What
I am still missing is that the web browser (
FireFox) is opening new pages with Character Encoding ISO-8859-1. How to configure TWiki to send UTF8 in header of HTML page ?
--
MartinMinka - 12 Sep 2006
Not sure if that is possible. In configure, use the
{Site}{Locale} and/or
{Site}{CharSet} (read related docs in configure)
--
PeterThoeny - 12 Sep 2006
If you set the locale using
configure to something like
de_DE.utf8, the HTTP headers should automatically be set to say the page is in UTF-8. As long as you haven't set
{Site}{Charset} in
configure, or
%CHARSET%, it should just work. Note that
{Site}{Charset} should not be set normally - it is used only if you need to override the locale's charset setting.
--
RichardDonkin - 27 Oct 2006