in reply to Catalyst: Wide character outside byte range in response. Encoding data as UTF-8

This is pretty weird... Apparently Catalys encodes decoded content (so far so good) but otherwise decodes stuff and feeds decoded stuff to HTTP::Server::PSGI??? (which is where the warning comes from)
package HTTP::Server::PSGI; ... sub _encode { if ($_[0] =~ /[^\x00-\xff]/) { Carp::carp("Wide character outside byte range in response. Enc +oding data as UTF-8"); utf8::encode($_[0]); } }
What is $content? Where does it come from?
  • Comment on Re: Catalyst: Wide character outside byte range in response. Encoding data as UTF-8
  • Download Code