in reply to Re^2: Putting a utf-8 subject into a mail header
in thread Putting a utf-8 subject into a mail header

To expand on what Anonymous Monk said, @ARGV is one of those things in Perl (like filenames), where Unicode isn't handled automatically, so you need to explicitly decode your input.

Replies are listed 'Best First'.
Re^4: Putting a utf-8 subject into a mail header
by talexb (Chancellor) on Feb 27, 2009 at 16:09 UTC

    I thought I read yesterday in the Camel that @ARGV *did* handle utf-8, otherwise I would have pursued that possibility. Now, of course, I can't find the page that I thought I read. In my case, the input's coming from a web form .. so I may need to do the same thing for another problem I'm having.

    It would be awesome if this solution solves that problem as well. :)

    Alex / talexb / Toronto

    "Groklaw is the open-source mentality applied to legal research" ~ Linus Torvalds

Re^4: Putting a utf-8 subject into a mail header
by Anonymous Monk on Feb 27, 2009 at 16:00 UTC
    or add
    #!/usr/bin/perl -CDSLA
    -C is -CDSL