Re: How to apply apache directives to pyblosxom bog files?

Chris G <[email protected]>
Newsgroups gmane.comp.web.pyblosxom.user
Message-ID <20071010080632.GF68453@newred>
On Tue, Oct 09, 2007 at 05:45:28PM -0400, will wrote:
> 
> 
> Blake Winton wrote:
> > Chris G wrote:
> >>> I suspect that the answer will depend on your setup.
> >>>
> >>> I have mine as a CGI and so my Apache things are in the .htaccess file 
> >>> in my public_html directory.
> >> So if I have my pyblosxom files in /home/chris/webdev then I need to
> >> put a .htaccess file (or use a <Directory>) that's in /home/chris/webdev?
> >>
> >> I thought I'd tried that but I'll try harder!  :-)
> >>
> >> Even so how do I apply an AddCharset directive?  What suffix do I use?
> >> .py possibly?
> > 
> > I've gone the PyBlosxom route, and added a file named 
> > "content_type.html" in my html flavour, containing the line:
> > application/xml;charset=utf-8
> > 
> > and it all seems to work for me...
> > 
> Oh, that's kind of wild.  That's something we should add to the 
> documentation...  but I have no idea where a good place for that would be.
> 

I'm not sure it does work.  On my installation (now Fedora 7) the
apache server sets the default to UTF-8 by having:-

    AddDefaultCharset UTF-8

This makes *everything* seen by a browser to appear to be UTF-8
encoded regardless of what the headers set by CGI/HTML say.  Thus if I
did the above but setting charset=iso-8859-1 it won't do anything at
all because the browser simply overrides it and says everything is
UTF-8.

I need to change the browser's default setting for one hierarchy (the
pyblosxom CGI generated hierarchy).

OK, I should go UTF-8 and everything would be wonderful but it's not
immediately possible because my text editor can't generate UTF-8
encoded text yet.

-- 
Chris Green

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.