Question
Hi,
I am working with TWiki within a Windows Environment and have it running without any further problems, including the international character support (the office here is spanish speaking, so we use characters like ó or í; see also configuration in attached configure.html).
So far no problems with that, BUT:
Imagine to have a topic that is called
SistemaDeGestiónDeCalidad. So far so good. Now attaching a document to this topic results in the creation of a folder within the pub + web folder with the same name. This is working as well and the document is attached. But when I try to open this document by a link
e.g.
[[%ATTACHURL%/4P01.pdf][4P01 Generación de registros]]
which results in a URL like
http://158.120.100.40/twiki/pub/OPB/SistemaDeGestiónDeCalidad/4P01.pdf
the process of opening the document might be aborted according to the following scenarios:
a) Using Firefox:
In the moment of clicking the link, Firefox seems to convert non-ascii character to punycode which makes
SistemaDeGesti%f3nDeCalidad out of
SistemaDeGestiónDeCalidad. It does this, too, when calling the topic, but this does not provoke any errors. But calling the attachment, I get a 403 Access denied from my Apache.
b) Using IE:
Using the same codification for the link as in Firefox (so with the
%f3n instead of the
ó), I am able to reproduce the same error. But by default it seems that at least IE 6 does not convert non-ascii characters into puny because using
ó in the link works perfectly and the attachement opens.
So I am not sure if it is a webserver or a browser problem, and if there is any way to make TWiki convert folder names to normal characters the same way it is doing it with filenames.
Just in case, I attach my
configure, my apache config files and a short extract of my apache log file with the corresponding entry.
Thanks for any help or workarounds.
Sebastian
Environment
--
SebastianKlus - 09 Jan 2008
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.
So nobody seems to suffer the same problem - too bad.
And no workaround to avoid special characters in folder names, either?
Regards,
Sebastian
--
SebastianKlus - 14 Jan 2008
Some work went into getting this functionality better in 4.2, at least with TWiki on *nix server OS'es. It is to be released soon, so give this version a try.
Difference between IE and Firefox is because IE is sending URLs UTF8-encoded by default, Firefox not.
--
SteffenPoulsen - 14 Jan 2008
Thanks Steffen,
I just downloaded the new stable - let's see how it works.
--
SebastianKlus - 23 Jan 2008
Just to inform you: After updating to TWiki 4.2, the problem maintains or even is worse than before. Before updating, at least IE could open the attachments. But now neither Firefox nor IE are able to open the attached files, but cancel with a 403 error (Access denied).
--
SebastianKlus - 21 Feb 2008
What is the situation if you use the viewfile script?
--
SteffenPoulsen - 21 Feb 2008
Just to let you know, I've got TWiki 4.1.2 on Debian working with German umlauts in the topic names. Using FF2, IE6 or Opera9 to access attachments in these topics works fine (either directly via a link to the
pub directory or using
viewfile). In all three browsers the URL of the topic
WärmeBehandlung is shown as
W%e4rmeBehandlung and access is OK.
--
MartinKaufmann - 21 Feb 2008
@
SteffenPoulsen: Even worse - even any topic containing umlauts or other non-ascii characters provoces an Error 500 - Internal Server Error. Error message:
couldn't create child process: 22: view.pl. And honestly my Apache or my Perl knowledge is too limited to handle this.
I nearly believe that it would be easiest to change to a Unix-based environment. I have TWiki running on my laptop with Ubuntu and do not have any problems there (confirming
MartinKaufmann).
--
SebastianKlus - 27 Feb 2008
Sorry, closing this after more than 30 days of inactivity. Please feel free to re-open if needed. Or, file a bug report.
--
PeterThoeny - 03 Apr 2008