Welcome to MobyThreads.com!
FAQFAQ   SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log in/Register/PasswordLog in/Register/Password

Problem with german umlaut in URL for file download

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Related Topics:
German need help - Hello, i will built a apache 2-server with my old pc. what i need is: -Websever -perl -cgi -FTP i am a windows user and search a manual or tool to build this server with linux. for this , i don't know what version of linux is the best for this. I will..

File download resume problems - Can anyone tell me what I need to set to enable people to resume downlaods form my server? I have put up web page with some links to .mpg files When someone tries to download them it runs fine, however if they lose the and try to resume it..

redirect german traffic with mod rewrite - Hello, I am wondering how those big sites like google redirect specific internet traffic. Is it possible to create a rewrite rool the german, austrian and swiz ip adresses and shift this traffic a german site? The only thing I found is..

internet download manager socket problem with apache ? ( .. - Hi everyone Is someone can install last free version of idm 4.1 ( and reboot : and confirm that there is a socket problem when You launch apache when idm is install( apache don t start). idm ( with no os reboot) and all goes..

NFS-mouted file system problem - Dear All, I have a problem with my Apache 2 Server (Linux machine) which is an NIS client and the home folders are file system from Windows server that runns SFU 3.5. I have enabled the root access in the NFS share, and I am able to cd the..
Next:  Apache: jsp & Apache  
Author Message
Frédéric Chastagnol

External


Since: Sep 29, 2005
Posts: 5



(Msg. 1) Posted: Fri Sep 30, 2005 10:55 am
Post subject: Problem with german umlaut in URL for file download
Archived from groups: alt>apache>configuration (more info?)

Hi
I try to explain my problem:

Apache 2.0.52
Tomcat 5.5.9

File {Tomcat-Home}\webapps\myapp\reporting\Messübersicht.pdf

URL in the page
<a href="reporting/Messübersicht.pdf" target="_blank">Messübersicht</a>

In the config file server.xml from tomcat, I try this:
<Connector port="8009" URIEncoding="iso-8859-1"
enableLookups="false" redirectPort="8443" protocol="AJP/1.3"
/>

With firefox, download ok
With MS IE 6.0:
The requested resource (/myapp/Messübersicht.pdf) is not available.


and this:
<Connector port="8009" URIEncoding="utf-8"
enableLookups="false" redirectPort="8443" protocol="AJP/1.3"
/>

With MS IE 6.0, download ok
With firefox:
The requested resource (/myApp/Messübersicht.pdf) is not available.


Any idea?
Thanks
Frédéric

 >> Stay informed about: Problem with german umlaut in URL for file download 
Back to top
Login to vote
Frédéric Chastagnol

External


Since: Sep 29, 2005
Posts: 5



(Msg. 2) Posted: Fri Sep 30, 2005 11:55 am
Post subject: Re: Problem with german umlaut in URL for file download [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Thank for your answer

> Why not simply change the filename? Accents on characters are a bad
> idea in URLs/filenames. Just don't use them Smile

The files are automatically generated and the file name is used as label
showed to the customer.
In German, for example, ü may be replaced with ue.
But german people like to see umlaut instead of an other character.
automatically replacing ue with ü in the label isn't possible. ue isn't
allways ü.

Thanks
By
Frédéric

 >> Stay informed about: Problem with german umlaut in URL for file download 
Back to top
Login to vote
hans1

External


Since: Mar 29, 2004
Posts: 672



(Msg. 3) Posted: Fri Sep 30, 2005 12:55 pm
Post subject: Re: Problem with german umlaut in URL for file download [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"Frédéric Chastagnol" <fch.DeleteThis@tetragtatitato.ch> schreef in bericht
news:433d526c$1_1@news.cybercity.ch...
> > Why not simply change the filename? Accents on characters are a bad
> > idea in URLs/filenames. Just don't use them Smile
> The files are automatically generated and the file name is used as label
> showed to the customer.
> In German, for example, ü may be replaced with ue.
> But german people like to see umlaut instead of an other character.
Call it part of their culture, that happens all over the world:
ñ in Spain, AEcombinated for Sweden, ç in France

Your problem boils down to cross-platform, cros-vendor and
cross-global-region incompatibilities in binary representing of
none-US-ASCII characters in URLs and filenames. Trying to ment what may have
been broken in so widely varying combination of factors, is undoubtedly a
wasted effort.

> Automatically replacing ue with ü in the label isn't possible. ue
> isn't allways ü.
Try it the other way around:
In your JSP application generate a filename apart from the label by just
replacing the 'decorated' characters in the label with their undecorated
counterparts. Be aware of the chance two lables traslate to one filename ...

HansH
 >> Stay informed about: Problem with german umlaut in URL for file download 
Back to top
Login to vote
Marc Nadeau

External


Since: Mar 27, 2005
Posts: 3



(Msg. 4) Posted: Sat Oct 01, 2005 11:50 pm
Post subject: Re: Problem with german umlaut in URL for file download [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Frédéric Chastagnol a écrit:

> Thank for your answer
>
>> Why not simply change the filename? Accents on characters are a bad
>> idea in URLs/filenames. Just don't use them Smile
>
> The files are automatically generated and the file name is used as label
> showed to the customer.
> In German, for example, ü may be replaced with ue.
> But german people like to see umlaut instead of an other character.
> automatically replacing ue with ü in the label isn't possible. ue isn't
> allways ü.
>
> Thanks
> By
> Frédéric

I had a similar problem with some french speaking (reading) site of mine.

The simple solution i found was to have my uploader script to rename all
files replacing accented chars to their non-accented equivalent.

é becomes e
ò become o

also:

' becomes _

etc...

I also replace all the blanks with _.

Then the script caches the real name of the file in an other directory.

The visitors see the caches and correctly spelled file name but it links to
a more standard named and easily manageable file.

It is quite easy to implement in perl or PHP.

I tried other solutions but they were a waste of time.


Hope that helps.



--
______________________________________________________
/ Qu'y a-t-il de pire qu'une femme ? Deux femmes. Jean \
\ Cocteau /
------------------------------------------------------
\ ^__^
\ (oo)\_______
(__)\ )\/\
||----w |
|| ||
 >> Stay informed about: Problem with german umlaut in URL for file download 
Back to top
Login to vote
"/dev/null

External


Since: Sep 29, 2005
Posts: 5



(Msg. 5) Posted: Sun Oct 02, 2005 10:55 am
Post subject: Re: Problem with german umlaut in URL for file download [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Use char codes for non-english characters, when reffering to url. This will work in any browser:
<a href="reporting/Mess%FCbersicht.pdf" target="_blank">Messübersicht</a>


Frédéric Chastagnol wrote:
> Hi
> I try to explain my problem:
>
> Apache 2.0.52
> Tomcat 5.5.9
>
> File {Tomcat-Home}\webapps\myapp\reporting\Messübersicht.pdf
>
> URL in the page
> <a href="reporting/Messübersicht.pdf" target="_blank">Messübersicht</a>
>
> In the config file server.xml from tomcat, I try this:
> <Connector port="8009" URIEncoding="iso-8859-1"
> enableLookups="false" redirectPort="8443" protocol="AJP/1.3"
> />
>
> With firefox, download ok
> With MS IE 6.0:
> The requested resource (/myapp/Messübersicht.pdf) is not available.
>
>
> and this:
> <Connector port="8009" URIEncoding="utf-8"
> enableLookups="false" redirectPort="8443" protocol="AJP/1.3"
> />
>
> With MS IE 6.0, download ok
> With firefox:
> The requested resource (/myApp/Messübersicht.pdf) is not available.
>
>
> Any idea?
> Thanks
> Frédéric
>
>
 >> Stay informed about: Problem with german umlaut in URL for file download 
Back to top
Login to vote
Frédéric Chastagnol

External


Since: Sep 29, 2005
Posts: 5



(Msg. 6) Posted: Mon Oct 03, 2005 2:55 am
Post subject: Re: Problem with german umlaut in URL for file download [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hi

> Use char codes for non-english characters, when reffering to url. This
will work in any browser:
> <a href="reporting/Mess%FCbersicht.pdf" target="_blank">Messübersicht</a>

Thanks for your answer. But it doesn't work!
Firefox replace itself the char ü with %FC.

I ask me, where is the bug? in Firefox or in MS IE? Smile

By
Frédéric
 >> Stay informed about: Problem with german umlaut in URL for file download 
Back to top
Login to vote
"/dev/null

External


Since: Sep 29, 2005
Posts: 5



(Msg. 7) Posted: Mon Oct 03, 2005 11:55 pm
Post subject: Re: Problem with german umlaut in URL for file download [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Frédéric Chastagnol wrote:
> Hi
>
>
>>Use char codes for non-english characters, when reffering to url. This
>
> will work in any browser:
>
>><a href="reporting/Mess%FCbersicht.pdf" target="_blank">Messübersicht</a>
>
>
> Thanks for your answer. But it doesn't work!
> Firefox replace itself the char ü with %FC.
>
> I ask me, where is the bug? in Firefox or in MS IE? Smile

I had such similar problem with IE but using %xx for non-english characters solved the problem. Now it works for every browser I tested (Netscape/Mozilla/Firefox IE and Opera).

Are you using charset=iso-8859-1 and %FC and it still doesn't work in IE?
Can you give us a full url of that file so we could check it online?
 >> Stay informed about: Problem with german umlaut in URL for file download 
Back to top
Login to vote
"/dev/null

External


Since: Sep 29, 2005
Posts: 5



(Msg. 8) Posted: Tue Oct 04, 2005 4:55 am
Post subject: Re: Problem with german umlaut in URL for file download [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Just have come to an idea which should be probably the most obvious solution here:

From within .html file simply use: ü for u umlaut
 >> Stay informed about: Problem with german umlaut in URL for file download 
Back to top
Login to vote
Frédéric Chastagnol

External


Since: Sep 29, 2005
Posts: 5



(Msg. 9) Posted: Mon Oct 10, 2005 11:55 am
Post subject: Re: Problem with german umlaut in URL for file download [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hi

First thanks all for help.


> Are you using charset=iso-8859-1 and %FC and it still doesn't work in IE?

I don't specify charset in the html-file. I think default is iso-8859-1. Or
not? I'm not sure.

> Can you give us a full url of that file so we could check it online?

Unfortunately not. The server is on a privat LAN.

Frederic
 >> Stay informed about: Problem with german umlaut in URL for file download 
Back to top
Login to vote
Display posts from previous:   
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]