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: [email protected]
Hi Artem, I'm not sure why SetCharacterEncodingFilter does not do the job ? I think the problem you are getting with the setParent() call from a new unedited link might be more a problem of the URL that is badly written.. You should check XWikiRadeoxRenderEngine.appendCreateLink You should also check that things work correctly when going through the 'preview' step. Ludovic Artem Melentev wrote:
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) ------------------------------------------------------------------------
-- You receive this message as a subscriber of the [email protected] mailing list. To unsubscribe: mailto:[email protected] For general help: mailto:[email protected]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
-- Ludovic Dubost XPertNet: http://www.xpertnet.fr/ Blog: http://www.ludovic.org/blog/ XWiki: http://www.xwiki.com Skype: ldubost AIM: nvludo Yahoo: ludovic
participants (2)
-
Artem Melentev -
Ludovic Dubost