LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   How to support special characters in the URI with Apache 2.0.52 in Slack (https://www.linuxquestions.org/questions/linux-general-1/how-to-support-special-characters-in-the-uri-with-apache-2-0-52-in-slack-448548/)

fmordhorst 05-25-2006 04:38 PM

How to support special characters in the URI with Apache 2.0.52 in Slack
 
Hello gentlemen!

I installed the Apache server with the purpose of taking of the MS IIS.

The big problem I’m facing now is with especial characters in the URI.

I´m brazilian and we need the support for Portuguese-BR. The users always used to save their files like “ação.doc” or “área.txt”.
I can’t tell them to rename all the files disposed in the server and to stop saving new files with these characters. When we used IIS this wasn't a problem.

When I try to access these files typing something like "mydomain.com.br/ação.doc" I receive a 404 (files not found) error from the server but I’m pretty sure the file is really there. The samba and kernel charsets are configured correctly for Brazilian Portuguese.

I also saw with ethereal, that in the GET method the file name is converted from “ação.doc” to “a%XX%XXo.doc” and that’s why apache don’t find it.

Know the questions… How do I make this converstion from hex to iso8859-1?

I’m using Apache 2.0.52 with these modules builted-in:

core.c, mod_access.c, mod_auth.c, mod_charset_lite.c, mod_case_filter.c, mod_case_filter_in.c, mod_include.c, mod_deflate.c, mod_log_config.c, mod_env.c, mod_setenvif.c, prefork.c, http_core.c, mod_mime.c, mod_status.c, mod_autoindex.c, mod_asis.c, mod_cgi.c, mod_negotiation.c, mod_dir.c, mod_imap.c, mod_actions.c, mod_speling.c, mod_userdir.c, mod_alias.c, mod_rewrite.c, mod_so.c


Any help will be appreciated.

Best regards,

Filipe Mordhorst
Brazil - SC

Tinkster 05-26-2006 02:07 AM

Hi, and welcome to LQ!

And allow me a silly question: how did the doc become part of a URI?


Cheers,
Tink

fmordhorst 05-26-2006 06:23 AM

Hi,

Maybe I misunderstand some of the aspects of URI syntax.

Resuming what I need: People should be able to access .doc or .xls in the http server that contain the special characters (ç, ã, é, etc), but the Internet Explorer converts these to %xx%xx and then Apache can’t find the files in the local server.

This is really annoying and it took some time from me already. My manager made the decision to change the web server from IIS to Apache and pushed the bomb on me and that’s why I’m kind out of time to solve the problem.


Thank again.

Filipe Mordhorst
Brazil - SC

Tinkster 05-26-2006 03:21 PM

I still don't understand any of what you're trying to
achieve even though you speak English :}

What's the architecture/infrastructure this is all happening
on, how do IIS and Apache interact, and where/how is Apache
accessing those files? How does IIS modify filenames that
Apache is trying to access?


Cheers,
Tink


All times are GMT -5. The time now is 05:53 AM.