Forum Moderators: phranque

Message Too Old, No Replies

404 when using Scandinavian æøå in URL

Apache does not understand æøå in URL

         

torinst

8:20 am on Sep 14, 2007 (gmt 0)

10+ Year Member



Okay guys - I finally need some help.

I have made an intranet application that writes .html docs and convert those into .ps and .pdf. Just fine.

One reference to a document might bee https//dellux3.help.dk/webprinter/userid/Prøv mig.pdf. Notice the Scandinavian ø in the line.

When kicking of the users client browser from the server the line looks like this https//dellux3.help.dk/webprinter/userid/Pr%C3%B8v%20ig.pdf.

The Apache returns a 404 Object not found. That is the %C3 thing it does not like. I have tried a few things but without luck.

Any ideas will be highly appriciated. It does not matter what kind of browser I use. The bug just remain.

jdMorgan

1:19 pm on Sep 14, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I don't have any expertise in this kind of problem, so all I can suggest is to look into the AddDefaultCharset, AddCharset, AddEncoding, AddLanguage, and DefaultLanguage directives documented in Apache core and in Apache mod_MIME, to make sure your configuration files are specifying the correct character set and character encoding to support Scandinavian languages.

Jim

torinst

3:14 pm on Sep 14, 2007 (gmt 0)

10+ Year Member



I forgot a m in the URL one might notice. [dellux3.help.dk...]

If copying the .pdf to my native file system the browser opens the file without any problems.

I have made a work arround hence I must finish this today.

Instead of letting the browser make a %C3%B8 out of the ø, I pass the entire adress through a simple homemade filter that replaces the ø with a %f8 - giving Pr%f8v%20mig.pdf.

That works. But it would have been nice with an explanation reg. the %C3 issue.

The hex codes if someone should consider to make their own filter:

# ---Æ æ Ø ø Å å Ó ó Ú ú Ý ý Á á Í í Ð ð Ö ö
# c6e6 d8f8 c5e5 d3f3 dafa ddfd c1e1 cded d0f0 d6f6