LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 05-25-2006, 04:38 PM   #1
fmordhorst
LQ Newbie
 
Registered: Nov 2005
Location: Brazil
Distribution: Slackware
Posts: 2

Rep: Reputation: 0
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
 
Old 05-26-2006, 02:07 AM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,965
Blog Entries: 11

Rep: Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865
Hi, and welcome to LQ!

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


Cheers,
Tink
 
Old 05-26-2006, 06:23 AM   #3
fmordhorst
LQ Newbie
 
Registered: Nov 2005
Location: Brazil
Distribution: Slackware
Posts: 2

Original Poster
Rep: Reputation: 0
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
 
Old 05-26-2006, 03:21 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,965
Blog Entries: 11

Rep: Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Special Characters SimeonV Suse/Novell 14 07-07-2006 01:29 PM
special characters greenbox Linux - Software 9 12-23-2005 07:33 PM
Special characters consty Programming 3 08-07-2005 05:53 AM
using special characters one_ro Mandriva 5 11-04-2004 08:52 AM
Special characters in slack? UB_KMA Slackware 3 07-17-2002 11:59 PM


All times are GMT -5. The time now is 10:32 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration