durusmail: quixote-users: Re: Unicode?
Unicode? scgi restart?
2003-11-14
2003-11-14
2003-11-14
2003-11-14
2003-11-14
2003-11-14
2003-11-14
Re: Unicode?
2003-11-14
2003-11-14
2003-11-14
2003-11-14
2003-11-14
Re: Unicode?
Jim Dukarm
2003-11-14
-------------- Graham Fawcett wrote: -----------------------------
> ... We have a lot of hands (though time is always scarce ;-) but I
> doubt most of us have a clear appreciation of the problem.

That is a fair statement. Maybe some of our friends who are using
Quixote in non-English contexts could enlighten us a bit.

-------------- Yasushi Iwata wrote on 2003-03-19/20: -------------
> I'm using Quixote in Japanese with utf-8 encoding. I do this by modifying
> a charset of the header. Like this:
>
> --- Quixote-0.5.1.orig/http_response.py Fri Oct  4 00:21:17 2002
> +++ Quixote-0.5.1/http_response.py      Tue Nov  5 22:25:34 2002
> @@ -200,7 +200,7 @@
>          self.body = body
>          self.set_header('content-length', len(body))
>          if not self.headers.has_key('content-type'):
> -            self.set_header('content-type', 'text/html; charset=iso-8859-1')
> +            self.set_header('content-type', 'text/html; charset=utf-8')

Apparently, making the charset in the Content-Type header settable to
utf-8 is enough to allow running a basic Japanese Quixote application,
presumably not using PTL or Quixote forms or htmltext.  It isn't clear
whether Yasushi is running Python with its default encoding set to
utf-8.

Is there actually someplace where Quixote's output gets encoded as
iso-8859-1, or is that just a bluff?

Jim Dukarm
DELTA-X RESEARCH
Victoria BC Canada


reply