Fwd: i18n (was: pyblosxom 3000)

Bill Mill <[email protected]>
Newsgroups gmane.comp.web.pyblosxom.devel
Message-ID <[email protected]>
On Thu, 20 Jan 2005 05:11:03 +0100, Steven Armstrong <[email protected]> wrote:
> Bill Mill wrote:
> > Sounds good to me. It's definitely cleaner to send data out through
> > the response object than it is through sys.stdout, if you ask me.
> >
> > Question for you, since you've been digging through the headers code.
> > If you can answer it off the top of your head, cool, if not, no
> > problem. Why are my blog pages sent with a utf-8 encoding? is that
> > done automatically by Apache? Does pyblosxom do this (grep suggests it
> > does not)? Does apache add headers to the output besides what
> > pyblosxom is sending out?
> >
> > Peace
> > Bill Mill
> > bill.mill at gmail.com
> >
>
> As far I can tell pyblosxom doesn't set any headers related to charsets
> or encoding.
>
> Apache on the other hand does, depending on your httpd.conf
>
> http://httpd.apache.org/docs/mod/core.html#adddefaultcharset
>

hmmm, ok. Should we be taking control of this header? I thought that
pyblosxom took control of all the headers sent to the broswer; why
wouldn't we? If blog entries are encoded in utf-8, but apache's
sending iso-8859-1 to the browser, it doesn't do us much good to read
the files in utf-8, right?

(I'm kind of thinking out loud there, but if anybody follows me, just
holler. I'm having a hell of a time getting the comments module to
work with utf-8, and don't look forward to tackling the rest of
pyblosxom. This explains my lack of progress on the comment admin tool
and my proposed changes to comments.py, by the way.)

> cheers
> Steven
>
> ps: my firefox says your blog is ISO-8859-1 encoded ...?

my localhost apache is sending utf-8, which is why I noticed the disparity.

Peace
Bill Mill
bill.mill at gmail.com


-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
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.