in reply to Encoding changed from Greek to somethign else
You mention Notepad.
Include the pragma use utf8; in the index.pl. Make sure to select UTF-8 encoding when saving the file.
I assume your data is in Windows-1253. When reading it into variables, decode it. Or handle the decoding automatically through an IO layer during opening the file:
open my $fh, '<:encoding(windows-1253)', 'filename.dat' or die "could +not open filename.dat for reading: $!";
header('Content-Type' => 'application/xml+xhtml;charset=UTF-8');
binmode STDOUT, ':utf8';
print '<?xml version="1.0" encoding="UTF-8"?>';
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
| A reply falls below the community's threshold of quality. You may see it by logging in. |