attachments and German "umlauts"?

View: New views
5 Messages — Rating Filter:   Alert me  

attachments and German "umlauts"?

by kawazu428 :: Rate this Message:

| View Threaded | Show Only this Message


Folks;

reading through jspwiki.org, I've been in search of a practicable
solution of how to provide my users with the option of uploading files
including German "umlauts" in their names. This is more painful than I
thought, however.

Situation:
-Ubuntu 6.10, configured to use UTF-8 as system-wide default locale.
-tomcat 5.5.20, jdk 1.6.0
-jspwiki.encoding=UTF-8
-browser(Firefox) is configured to use UTF-8 encoding
-Upload.jsp has "charset-UTF-8" set

I tried uploading a file named "Prüflauf.doc" which uploads well, as
well as being displayed with the "right" name" (including the "umlaut")
on the attachments page.

However, as soon as I try to click-open the attachment, I end up with a
404 error and tomcat complaining that

...
The requested resource (Attachment 'MainPrÃFlauf.doc', version -1 does
not exist.) is not available.
...

And, looking at the source code of the "attachments" page, I see a link
like this to open the attachment:

<a class="attachment" href="/JSPWiki/attach/Main/Pr%C3%BCflauf.doc" ...

also without "umlauts". Should this happen having both page-encoding
and browser-charset and everything else set to be UTF-8?

To make things worse, looking into the wiki file system, the attachment
indeed lives in a

Pr%C3%BCflauf.doc-dir/

folder.


Hmmmmm... Can anyone point me a way out of this mess? Where's the
misconfiguration / misbehaviour here? Tomcat? The browser? The OS?
Right now, I'm pretty clueless to be honest...

Thanks in advance and bye,
Kristian



--
Kristian Rink * http://zimmer428.net * http://flickr.com/photos/z428/
jab: kawazu@... * icq: 48874445 * fon: ++49 176 2447 2771
"One dreaming alone, it will be only a dream; many dreaming together
is the beginning of a new reality." (Hundertwasser)
_______________________________________________
Jspwiki-users mailing list
Jspwiki-users@...
http://ecyrd.com/cgi-bin/mailman/listinfo/jspwiki-users

Re: attachments and German "umlauts"?

by kawazu428 :: Rate this Message:

| View Threaded | Show Only this Message


Folks;


[kawazu <kawazu@...> @ Fri, 26 Jan 2007 10:34:22 +0100]

> To make things worse, looking into the wiki file system, the
> attachment indeed lives in a
>
> Pr%C3%BCflauf.doc-dir/
>
> folder.
>
>
> Hmmmmm... Can anyone point me a way out of this mess? Where's the
> misconfiguration / misbehaviour here? Tomcat? The browser? The OS?
> Right now, I'm pretty clueless to be honest...

Just forget about it, once again the error is located in front of the
screen: I'd better turn on URIEncoding="UTF-8" for the tomcat http
Connector if actually using UTF-8 encoding throughout the wiki.

I feel ashamed now. :/
Sorry and cheers,
Kris


--
Kristian Rink * http://zimmer428.net * http://flickr.com/photos/z428/
jab: kawazu@... * icq: 48874445 * fon: ++49 176 2447 2771
"One dreaming alone, it will be only a dream; many dreaming together
is the beginning of a new reality." (Hundertwasser)
_______________________________________________
Jspwiki-users mailing list
Jspwiki-users@...
http://ecyrd.com/cgi-bin/mailman/listinfo/jspwiki-users

Dynamic Knowledge Repository (DKR) [Was: attachments and German "umlauts"?]

by Murray Altheim-2 :: Rate this Message:

| View Threaded | Show Only this Message

kawazu wrote:

> Folks;
>
>
> [kawazu <kawazu@...> @ Fri, 26 Jan 2007 10:34:22 +0100]
>> To make things worse, looking into the wiki file system, the
>> attachment indeed lives in a
>>
>> Pr%C3%BCflauf.doc-dir/
>>
>> folder.
>>
>>
>> Hmmmmm... Can anyone point me a way out of this mess? Where's the
>> misconfiguration / misbehaviour here? Tomcat? The browser? The OS?
>> Right now, I'm pretty clueless to be honest...
>
> Just forget about it, once again the error is located in front of the
> screen: I'd better turn on URIEncoding="UTF-8" for the tomcat http
> Connector if actually using UTF-8 encoding throughout the wiki.
>
> I feel ashamed now. :/
> Sorry and cheers,

Kris,

No need to feel bad about it at all, we all make mistakes or overlook
things. Life is complicated. Beer is not. Have a beer.

This is a pretty typical situation: someone can't find the solution to
what seems like an obvious problem. They find it.

But the next problem is that even if they do manage to solve the
problem *and* post it to the mailing list the solution is usually lost
to the sands of time unless someone is able to wade through the mailing
list archives to find it. That's difficult, sometimes practically
impossible.

Doug Engelbart talks about how an air force contractor built a fighter
jet for the US military, and after a few years all the planes were
showing rather extreme cracks around the tail section. When the air
force went back to the contractor the company didn't have any records
that helped the matter, just all the standard plans and documentation,
but nothing about the hundreds of thousands of actual decisions that
went into the design. Most of the engineers that had been involved
in the development of the plane had either moved on to other projects
or even left the company. In any case, it seemed impossible to know
*why* the tail was designed with this flaw given all the complicated
decision and design process that goes into making a fighter jet.

But then they asked around and found one older guy who remembered the
decision making process, partly because he was still angry about having
lost a battle over the tail design. He remembered arguing about the
design not being able to handle the stresses, according to his
calculations, but other engineers had overruled him. He remembered in
large part because of his anger; otherwise he'd likely have forgotten.

Doug's point is that had the design team kept an efficient set of
documentation of not only the design but also all the deliberations,
arguments, notes, all the knowledge of the group that could be
reasonably compiled during the design process, it would comprise what
he calls a Dynamic Knowledge Repository (DKR), then in the future people
could refer to the DKR to see what the hell was in the heads of the
designers when things fail.

A wiki is a pretty effective DKR if the community uses it to keep track
of everything. I know Janne had to make the same decision as many other
wiki designers in providing a mailing list, because part of the life of
the JSPWiki community is spent here and the contents of this mailing
list seldom make it back onto the wiki. If you look at some wikis, say
CommunityWiki, they try to conduct conversations right on the wiki,
which means the wiki has a *ton* of superfluous content. But it also
has people who are constantly trying to refactor those conversations
back into the page content. It's a lot of work.

I wasn't able to make it to WikiSym 2006 but I understand that Doug
was there and presented on his DKR ideas. I'm sure it's very satisfying
for him to see the realization of this concept within the wiki community,
a nice rounding up of many decades of advocacy on his part.

The solution: when you find it, give everyone else a gift by documenting
your found solution on the wiki so the next person doesn't have to bang
their head against a wall. If it's valuable, make it part of our DKR.

And yes, I've posted this to a DynamicKnowledgeRepository page:   :-)

   http://www.jspwiki.org/wiki/DynamicKnowledgeRepository

Cheers,

Murray

PS. and while the origin of this thread had to do with problems with the
  connections to attachments, I should mention that one of the issues Doug
  wrote about in the early 1960's was the *addressability* of documents.
  In that sense, URLs were not invented in the 1990s but about 30 years
  earlier; even if TimBL had known about Doug's work (apparently he didn't).
...........................................................................
Murray Altheim <murray06@...>                              ===  = =
http://www.altheim.com/murray/                                     = =  ===
SGML Grease Monkey, Banjo Player, Wantanabe Zen Monk               = =  = =

        In the evening
        The rice leaves in the garden
        Rustle in the autumn wind
        That blows through my reed hut.  -- Minamoto no Tsunenobu
_______________________________________________
Jspwiki-users mailing list
Jspwiki-users@...
http://ecyrd.com/cgi-bin/mailman/listinfo/jspwiki-users

Re: attachments and German "umlauts"?

by D_Seewald :: Rate this Message:

| View Threaded | Show Only this Message

For those who can't find the http-connector in tomcat or need to search for it.
It can be found in the file server.xml at \apache-tomcat-6.0.xy\conf\
I had the same problem.
Adding

URIEncoding="UTF-8"

solved the problem.

Kristian Rink-3 wrote:
Folks;


[kawazu <kawazu@zimmer428.net> @ Fri, 26 Jan 2007 10:34:22 +0100]
> To make things worse, looking into the wiki file system, the
> attachment indeed lives in a
>
> Pr%C3%BCflauf.doc-dir/
>
> folder.
>
>
> Hmmmmm... Can anyone point me a way out of this mess? Where's the
> misconfiguration / misbehaviour here? Tomcat? The browser? The OS?
> Right now, I'm pretty clueless to be honest...

Just forget about it, once again the error is located in front of the
screen: I'd better turn on URIEncoding="UTF-8" for the tomcat http
Connector if actually using UTF-8 encoding throughout the wiki.

I feel ashamed now. :/
Sorry and cheers,
Kris


--
Kristian Rink * http://zimmer428.net * http://flickr.com/photos/z428/
jab: kawazu@jabber.ccc.de * icq: 48874445 * fon: ++49 176 2447 2771
"One dreaming alone, it will be only a dream; many dreaming together
is the beginning of a new reality." (Hundertwasser)
_______________________________________________
Jspwiki-users mailing list
Jspwiki-users@jspwiki.org
http://ecyrd.com/cgi-bin/mailman/listinfo/jspwiki-users

Re: attachments and German "umlauts"?

by Harry Metske :: Rate this Message:

| View Threaded | Show Only this Message

and it is also doc'ed at : http://www.jspwiki.org/wiki/TomcatAndUTF8

regards,
Harry

2008/8/1 D_Seewald <detlef.seewald@...>

>
> For those who can't find the http-connector in tomcat or need to search for
> it.
> It can be found in the file server.xml at \apache-tomcat-6.0.xy\conf\
> I had the same problem.
> Adding
>
> URIEncoding="UTF-8"
>
> solved the problem.
>
>
> Kristian Rink-3 wrote:
> >
> >
> > Folks;
> >
> >
> > [kawazu <kawazu@...> @ Fri, 26 Jan 2007 10:34:22 +0100]
> >> To make things worse, looking into the wiki file system, the
> >> attachment indeed lives in a
> >>
> >> Pr%C3%BCflauf.doc-dir/
> >>
> >> folder.
> >>
> >>
> >> Hmmmmm... Can anyone point me a way out of this mess? Where's the
> >> misconfiguration / misbehaviour here? Tomcat? The browser? The OS?
> >> Right now, I'm pretty clueless to be honest...
> >
> > Just forget about it, once again the error is located in front of the
> > screen: I'd better turn on URIEncoding="UTF-8" for the tomcat http
> > Connector if actually using UTF-8 encoding throughout the wiki.
> >
> > I feel ashamed now. :/
> > Sorry and cheers,
> > Kris
> >
> >
> > --
> > Kristian Rink * http://zimmer428.net * http://flickr.com/photos/z428/
> > jab: kawazu@... * icq: 48874445 * fon: ++49 176 2447 2771
> > "One dreaming alone, it will be only a dream; many dreaming together
> > is the beginning of a new reality." (Hundertwasser)
> > _______________________________________________
> > Jspwiki-users mailing list
> > Jspwiki-users@...
> > http://ecyrd.com/cgi-bin/mailman/listinfo/jspwiki-users
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/attachments-and-German-%22umlauts%22--tp8648258p18773121.html
> Sent from the JspWiki - User mailing list archive at Nabble.com.
>
>


--
met vriendelijke groet,
Harry Metske
Telnr. +31-548-512395
Mobile +31-6-51898081