Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

changing charset for downloading files

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  Apache (2) & XP Pro vs. NameVirtualHost  
Author Message
user2677

External


Since: Feb 11, 2004
Posts: 5



(Msg. 1) Posted: Wed Feb 11, 2004 4:41 am
Post subject: changing charset for downloading files
Archived from groups: alt>apache>configuration (more info?)

Hi

I'm from Slovenia and our writing includes characters such as c, s, z (I
don't even know if you got them right but it doesn't matter). The
corresponding
charset for this
writing is WINDOWS-1250. I'm serving some files to people from my apache but
the names of the files didn't appear correctly in browsers until I wrote the
directive: AddDefaultCharset WINDOWS-1250 into httpd.conf. Now the
characters appear correctly.

My problem is that when somebody downloads these files, the pop up with
save/open/cancel appears but now the characters c, s, z are replaced by
something like %9e or -e8 or are simply left out. So, a user can't save the
file automatically with it's true name. I've tried this with opera and
iexplore and they both have this problem.

Is there anything I can do with apache that would fix this?
Thanks very much for the answers.

Gregor

 >> Stay informed about: changing charset for downloading files 
Back to top
Login to vote
patpro1

External


Since: Nov 20, 2003
Posts: 40



(Msg. 2) Posted: Wed Feb 11, 2004 5:04 am
Post subject: Re: changing charset for downloading files [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In article <c0bu5l$7rb$1@planja.arnes.si>,
"Gregor Traven" <gregor.traven.DeleteThis@guest.arnes.si> wrote:

 > Hi
 >
 > I'm from Slovenia and our writing includes characters such as c, s, z (I
 > don't even know if you got them right but it doesn't matter). The
 > corresponding
 > charset for this
 > writing is WINDOWS-1250. I'm serving some files to people from my apache but
 > the names of the files didn't appear correctly in browsers until I wrote the
 > directive: AddDefaultCharset WINDOWS-1250 into httpd.conf. Now the
 > characters appear correctly.
 >
 > My problem is that when somebody downloads these files, the pop up with
 > save/open/cancel appears but now the characters c, s, z are replaced by
 > something like %9e or -e8 or are simply left out. So, a user can't save the
 > file automatically with it's true name. I've tried this with opera and
 > iexplore and they both have this problem.
 >
 > Is there anything I can do with apache that would fix this?
 > Thanks very much for the answers.

as far as I can say, you just can't do anything about that. The HTTP
protocol requires that URL are encoded with 7bit characters.
You add Charset directives so that the content of your documents is
interpreted correctly by the http client (and then, if a link aim at a
file name with caracters belonging to this particular charset, the link
will be correctly followed by the client).
You can't change HTTP protocol via charset directives, so the name of
the file is encoded.

patpro

--
je cherche un poste d'admin UNIX/Mac
<a style='text-decoration: underline;' href="http://patpro.net/cv.php" target="_blank">http://patpro.net/cv.php</a><!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: changing charset for downloading files 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
log files perms keep changing - Hi, I changed two of my log files (access_log and error_log) perms to 644 but each time apache adds another entry to the log files (or so it seems) the perms change back to 640. Where is this comming from? and how can i prevent it? Apache 1.3.27 on mdk...

Charset on apache - Hi, I wrote a simple page with a different charset that is displayed properly on the browser, but when i placed the page under apache, i see strange characters. I checked my conf file and the apache loads the right charset. Any ideas? Thanks Shlomi

Access from only one, changing IP - Hi, i want to give access only one person via the internet to my apache server. The problem is, that his ip adresse is changing once a day. I have no problem getting his ip. When i put this ip into the httpd.conf file with the <allow from <ip>...

MOD_REWRITE for changing the servername - Hi , I am stuck at this rewrite issue. I need to rewrite my url from http://ServerName/xyc/abz to http://Servername.domain.com/xyc/abz I tried to look RewriteCond %{SCRIPT_URI) !^http://Servername\.domain\.com.* RewriteRule ^http://ServerName/(.*) ....

Why doesnt changing the document root location work? - Hi I am using webmin/apache We have a website setup and working. I want to change where the website is, so i went into webmin>apache>edit directives and changed the document root for my website from /usr/home/philssite to /usr/home/new sa...
   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 ]