t/php/strings4.t (11 lines of code) (raw):
use strict;
use warnings FATAL => 'all';
use Apache::Test;
use Apache::TestRequest;
plan tests => 1, need_php;
my $expected = <<EXPECT;
<>"&��
<>"&åÄ
EXPECT
my $result = GET_BODY "/php/strings4.php";
ok $result eq $expected;