# setting STDOUT to ":utf8" with "binmode". Also FCGI starting with
# 0.69 implements proper handling for UTF-8 flagged strings -- namely
# by downgrading them into bytes. The combination of the two causes
# setting STDOUT to ":utf8" with "binmode". Also FCGI starting with
# 0.69 implements proper handling for UTF-8 flagged strings -- namely
# by downgrading them into bytes. The combination of the two causes
# everything in Perl's internal encoding and using Perl's I/O layer
# for automatic conversion on output).
#
# everything in Perl's internal encoding and using Perl's I/O layer
# for automatic conversion on output).
#
sub fix_print_and_internal_encoding_after_0_68 {
return if version->new("$FCGI::VERSION")->numify <= version->new("0.68")->numify;
sub fix_print_and_internal_encoding_after_0_68 {
return if version->new("$FCGI::VERSION")->numify <= version->new("0.68")->numify;