http://www.perlmonks.org?node_id=623145


in reply to Re^2: Unicode UTF16 - Unknown encoding error
in thread Unicode UTF16 - Unknown encoding error

Yes, but what are you using to convert your Perl script to an .exe? PAR, PerlApp, something else? That's going to be where your problem is by the sounds of it.

Replies are listed 'Best First'.
Re^4: Unicode UTF16 - Unknown encoding error
by Anonymous Monk on Jun 25, 2007 at 11:40 UTC
    I'm using PerlAPP 5.2.0.

      OK, I'm not that familiar with PerlApp, but it looks like you may need to explicitly tell it to include Encode - something like:

      perlapp myscript.pl --add Encode

      You may also need to add Encode::Unicode (and possibly others) if Encode delegates its Unicode-handling to more specific modules (as I suspect it might).