Sorry, my mailer did not quote the original post from Tue, 30 Oct 2007
17:10:07 -0800

I'm seeing warnings of the type "UTF-16 surrogate 0xABCD" in my logs that
I'm not quite sure how to explain. I am familiar with the nature of the
warning message, and I've tracked it to Catalyst::Engine->write -- but I'm
not sure exactly what's triggering it. The response body does contain the
character sequences in question, but the Content-Type is
application/octet-stream (that's JPEG to you AOL folks) and the UTF flag is
off for the string. There doesn't seem to be any corruption of the output,
the JPEGs work. But I'm concerned that something is treating my output as
UTF8 or otherwise "stringy" when it shouldn't be.

Any ideas?

Thanks in advance,
Brian Kirkbride



2008/5/7 Martin Ellison <[EMAIL PROTECTED]>:

> I've got the same problem for the same reason (trying to return a JPEG).
> Presumably something thinks that it is getting text (Unicode) and picks up
> some special characters. Is there some equivalent of binmode for body?
>

-- 
Regards,
Martin
([EMAIL PROTECTED])
IT: http://methodsupport.com Personal: http://thereisnoend.org
_______________________________________________
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/

Reply via email to