> Hello, > > I'm having difficulties reading a log file from ADMT using ordinary perl > 5.8.7 open command. > After opening the file (apparently in "little endian" format, according to > my notepad++) i'm printed it and i get spaces everywhere (space between each > char!). > when i convert the file to UTF8 (again, manually with my notepad++) it > prints out file just fine. > > anyone knows how to handle this encoding in perl, or how can i convert it to > UTF8?
If i've read perluniintro correctly, you can use an open statement like this to process the file directly: open FH, "<:encoding(ucs2)", $filename or die "Can't open $filename $!\n"; -- Eric Amick Columbia, MD _______________________________________________ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs