#!/usr/bin/perl

use CGI qw(:standard);

#print header;  - this on it's own would produce garbled text in the browser. Must use the 'utf-8' flag below.

print header(-charset => 'utf-8');

print "<html><head><title>Reading and displaying a file with UTF-8 encoded multilingual text.</title></head><body>";

open(FH, "multiling.txt") || die "Can't open file: $!";
while(<FH>) {
	print "$_ <br />";
	}
close(FH);

print "</body></html>";



