Add new attachment

Only authorized users are allowed to upload new attachments.

This page (revision-13) was last changed on 22-Aug-2006 22:25 by  

This page was created on 15-Dec-2005 09:14 by

Only authorized users are allowed to rename pages.

Only authorized users are allowed to delete pages.

Difference between version and

At line 18 changed one line
When looking at some url:s I see the letters in question URLEncoded (%C3%B5 instead of ö).
When looking at some url's I see the letters in question URLEncoded (%C3%B5 instead of ö).
At line 28 added 44 lines
Using JSPWiki 2.2.28 and JDBCPageProvider AND UTF-8 (the recommended setting for JSPWiki)
non-ascii letters work fine in our installation. They show
normally when referencing a page and in the page header, and are normally (unencoded) stored in the database.
However, as Janne says, the url must be encoded. IE6 does allow to manually enter the path non-encoded,
encoding it behind the scenes - convenient but JSPWiki should not do this.
So, there is definitely no problem with the JDBC driver itself, but we use SQL Server with ntext/nvarchar
fields - using some other non-unicode enabled database would be expected to cause the problems you describe.
Can you manually add a page with such names to the database?
-- Gregor
I tried to manually write the URLEncoded characters into the url and the Editpage cleans them away so I don't think it touched the database? I'm going to try to test to put an utf-8 filter before the wiki.
-- Roland (the submitter of this bug)
Hmm... Have you tried setting useBodyEncodingForURI=true in your server.xml config file? Like this:
<Connector port="8009" className="org.apache.coyote.tomcat4.CoyoteConnector"
enableLookups="false" redirectPort="8443" protocol="AJP/1.3"
connectionTimeOut="120000" acceptCount="200" maxThreads="250"
minSpareThreads="25" maxSpareThreads="75" useBodyEncodingForURI="true">
The above is for the AJP connector, but if your main webserver is Tomcat, you want to do it for the Http connector as well.
-- JanneJalkanen
useBodyEncodingForURI="true" solved the problem. I can't find the documentation on the tomcat-hompage about this since the Connector-page doesn't exist for my version of Tomcat. So to ask a question in the wrong forum. Should I expect changed behavior in my other webapps of this configuration?
-- Roland
It is a new "feature" in Tomcat 5.0.12 and above. I have no idea why they changed this; and especially changed it from the default. I don't think it should impact your other applications.
-- JanneJalkanen
I've discoverd a simular problem with the attatchments. They are linked correctly and have åäö in the database but I get a 404-error where it claims not to find the page (without åäö). Is there anything more that I have to think about to get extended charset to work?
-- Roland
Version Date Modified Size Author Changes ... Change note
13 22-Aug-2006 22:25 3.203 kB to previous
12 22-Aug-2006 20:14 3.266 kB Mark to previous | to last
11 01-Feb-2006 11:11 3.201 kB to previous | to last
10 01-Feb-2006 11:10 3.199 kB to previous | to last
9 01-Feb-2006 11:10 3.197 kB to previous | to last
8 19-Dec-2005 18:34 2.913 kB Janne Jalkanen to previous | to last
7 19-Dec-2005 12:03 2.7 kB to previous | to last
6 19-Dec-2005 10:59 2.687 kB to previous | to last
5 15-Dec-2005 16:42 2.389 kB Janne Jalkanen to previous | to last
4 15-Dec-2005 15:13 1.8 kB to previous | to last
3 15-Dec-2005 13:01 1.548 kB to previous | to last
2 15-Dec-2005 11:09 0.805 kB Janne Jalkanen to previous | to last
1 15-Dec-2005 09:14 0.632 kB to last
« This page (revision-13) was last changed on 22-Aug-2006 22:25 by