Xavier MOGHRABI wrote:
xWiki works with UTF-8 Characters after some
modifications, live example is on
http://zh.objectweb.org
There are some modifications to do in the code of xWiki, you need to configure
xWiki to manage UTF-8 and to use a database without non UTF-8 code.
Whether use of non-English _names_ of documents is possible?
I have made all that is written in
http://www.xwiki.org/xwiki/bin/view/Dev/CharactersSets
But Russian names of documents displays incorrectly. On
zh.objectweb.org
too.
From a code I have understood, it of that request.getPathInfo and
getParametr (for parameters in uri) are not decoded in utf.
It so, or I have incorrectly setup xwiki?
(or it is servlet api bug?)
I set SetCharacterEncodingFilter off by add ignore=false and rewrite
XWikiServletRequest.get, getPathInfo, getParameter to decode from
ISO-8859-1 tо UTF-8
Names now working fine, but i found next problem:
when i click on new,unedited link [newlink], open edit form. In this
form field "Parent" fills not decoded.
PrepareEditForm.setParent called 2 times, first call is decoded (from
PrepareEditForm.reset), second - not decoded (from beenutils).
Main questions:
1 That second PrepareEditForm.setParent call for?
2 Why it is not decoded?
3 How i may decode it?
Now i`m decode in setParent. This is bad idea, but works..
Soon i will open
http://usunet.ru/wiki/ - Ural State University XWiki.
~Environment~:
Gentoo Linux, LANG="ru_RU.UTF-8"
Sun JDK 1.5.0.04, JAVAOPTS="-Dfile.encoding=UTF-8"
Tomcat 5.0.27-r6
DB: empty unicode db on PostgreSQL v8.0.3
(Sorry my English)
--
Artem Melentev, UralSU, CS301. jabber: amelentev(a)jabber.ru