Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Catalyst: Users

Strange UTF16 warning

 

 

Catalyst users RSS feed   Index | Next | Previous | View Threaded


brian.kirkbride at deeperbydesign

Oct 30, 2007, 5:57 PM

Post #1 of 2 (139 views)
Permalink
Strange UTF16 warning

Hello All,

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

_______________________________________________
List: Catalyst[at]lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst[at]lists.rawmode.org/
Dev site: http://dev.catalyst.perl.org/


m.e at acm

May 7, 2008, 4:30 AM

Post #2 of 2 (47 views)
Permalink
Re: Strange UTF16 warning [In reply to]

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 <m.e[at]acm.org>:

> 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
(m.e[at]acm.org)
IT: http://methodsupport.com Personal: http://thereisnoend.org

Catalyst users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.