7 msgConfiguration of $c->log with Catalyst::Log:...
8 msgInvalid session ids being generated
4 msgCatalyst / dbix-class / mysql / REST job

Strange UTF16 warning
\ Martin Ellison (7 May 2008)
. \ Martin Ellison (7 May 2008)

1 msgWikipedia article improvement?
5 msgFastCGI: incomplete headers (0 bytes) received ...
5 msgBasic CRUD Tutorial
2 msgHow to display a single HTML::Widget form field...
7 msgLet's port Twitter to Perl
8 msgCatalyst, utf8 in form element type text
17 msgAnybody who fancies some LWP poking ...
54 msgRFC: Catalyst::Controller::REST::DBIC
1 msgKill the book thread please
2 msgMore Catalyst Template Toolkit examples?
6 msgFw: high school reunion (no subject)
2 msg(no subject)
6 msgUsing URIs for my app in another program
4 msgTutorial
11 msg$row->copy causing exit from controller(!)
14 msgHow to print/display some data in an end action
Subject:Re: Strange UTF16 warning
Group:Catalyst
From:Martin Ellison
Date:7 May 2008


 


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>:

> 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)
IT: http://methodsupport.com Personal: http://thereisnoend.org


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



© 2004-2008 readlist.com