[Catalyst] Re: Encoding problem - ?fastcgi?
catalyst at beulah.qualmograph.org.uk
Mon Oct 8 21:40:52 GMT 2007
On Mon, Oct 08, 2007 at 02:48:48PM -0500, Jonathan Rockway wrote:
> Richard Robinson wrote:
> > On Mon, Oct 08, 2007 at 02:07:18PM +0200, A. Pagaltzis wrote:
> >> did you ever get this sorted? Quoting in full since you seem to
> >> have been warnocked. I have no idea what to suggest but am
> >> curious about this issue as a matter of personal interest.
> > ...
> > No, I haven't got any further, I'm kind of stuck on it. The workaround makes
> > it go away for now & there are other things I need to be sorting out too, so
> > I'm just kind of waiting for an idea to appear from somewhere ...
> Can someone *please* distill a test case for this?
> I can guess why this is happening, but I'd like to be sure. My guess is
> that utf8-flagged characters are in $c->res somewhere outside of (the
> utf-8 but not flagged as such) $c->res->body. When the headers and body
> are concatenated somewhere down the line, the encoded utf8 octets get
> upgraded to wide characters as latin-1, and you have your double encoding.
<bangs head on wall>
like $c->res->content_type('application/pdf'), maybe ?
I'm in the middle of picking something else apart just now, I'll have a look
at this as soon as I've put it back together. Probably tomorrow, UK time.
"The whole plan hinged upon the natural curiosity of potatoes" - S. Lem
More information about the Catalyst