p4raw-id: //depot/perl@16747
is($line,"€0.02\n","HTML escapes");
close($fh);
-open($fh,">$file") || die "File cannot be re-opened";
-print $fh "£0.02\n";
-close($fh);
+{
+ no utf8;
+ open($fh,">$file") || die "File cannot be re-opened";
+ print $fh "£0.02\n";
+ close($fh);
+}
ok(open($fh,"<encoding(US-ASCII)",$file),"Opened as ASCII");
my $line = <$fh>;