in reply to unexpected behavior on Win2k german platform

I'm guessing the file names are encoding in UTF16. Based on How to read a Unicode file?, try opening your file of filenames like:
open(FILE, "<:encoding(UTF-16LE)", $filename);
(You are using perl5.8, aren't you?) It's possible there will be some file names that perl won't be able to open due to character set issues.

Replies are listed 'Best First'.
Re: Re: unexpected behavior on Win2k german platform
by Anonymous Monk on Feb 16, 2004 at 09:29 UTC
    HI,
    Thanks a lot!!!!!!!

    Just using the open(FILE, "<:encoding(UTF-16LE)", $filename); line in script & compiling it on English W2k platform did NOT work,But when I installed ActiveState perl 5.8.2 on W2k German platform & used above line in script it gave me expected results!!
    Now next thing is, I want to convert this script file to exe. (Because I want to make this script to be run without perl interpreter) I used indigostar's perl2exe utility.This works fine on English,but not on German!! Even I installed this on German but the same thing. Do anybody is aware of such utility or solve this problem?
    Again thanks in advance!!