After reading the IniHash.pm I found that I could pass The ReadINI method a scalar reference. So my solution is:
use Encode; open(FH, "<:encoding(UTF-16)", $file); my $Data; { local $/; $Data = <FH>; close FH; #if (utf8::decode($Data)) { # print "Success\n"; #} #else { # print "Fail\n"; #} } my $DomainConfig = ReadINI (\$Data, \%ReadINIoptions); ________________________________________ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bullock, Howard A. Sent: Thursday, March 31, 2005 9:51 PM To: Perl-Win32-Users@listserv.ActiveState.com Subject: Config::IniHash and Unicode INI file Could someone give me a pointer to the methodology or relevant docs for using Config::IniHash with Perl 5.8.6 to read a Unicode INI file? The module read the file but the data contains all the nulls. Is there a way to convert the Unicode to standard ASCII text upon reading? _______________________________________________ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs