I have the following in my cgiapp_init:
binmode STDOUT, ":utf8"; # Explicitly output utf8 - this is critical
probably totally wrong, but it works for me...
2009/11/4 Michael Lackhoff <[email protected]>:
> On 04.11.2009 12:19 Cees Hek wrote:
>
>> You mean something like this:
>>
>> __PACKAGE__->add_callback('postrun', sub {
>> my $self = shift;
>>
>> # Make sure the output is utf8 encoded if it needs it
>> if ( $_[0] && ${$_[0]} && utf8::is_utf8(${$_[0]}) ){
>> utf8::encode( ${$_[0]} );
>> }
>>
>> return;
>> });
>>
>> I have that in my CGI::App base class.
>
> As time goes by my base class gets more and more pieces of yours ;-)
>
> Thanks
> -Michael
>
> ##### CGI::Application community mailing list ################
> ## ##
> ## To unsubscribe, or change your message delivery options, ##
> ## visit: http://www.erlbaum.net/mailman/listinfo/cgiapp ##
> ## ##
> ## Web archive: http://www.erlbaum.net/pipermail/cgiapp/ ##
> ## Wiki: http://cgiapp.erlbaum.net/ ##
> ## ##
> ################################################################
>
>
##### CGI::Application community mailing list ################
## ##
## To unsubscribe, or change your message delivery options, ##
## visit: http://www.erlbaum.net/mailman/listinfo/cgiapp ##
## ##
## Web archive: http://www.erlbaum.net/pipermail/cgiapp/ ##
## Wiki: http://cgiapp.erlbaum.net/ ##
## ##
################################################################