Subject: | Character encoding problem with UTF-8. |
If the default encoding for filehandles is not iso-8859-1, then the
value for 'CI' is incorrect because it uses the iso-8859-1 encoding for
'รด' (0xF4).
One possible fix is to add:
binmode(DATA, ':encoding(iso-8859-1)');
before reading from the DATA filehandle.