in reply to Re: A problem with dash typography
in thread A problem with dash typography

Sorry about the typos...that aside I believe you have nailed the necessary magic with the ':utf8'...excepting in this case it is required before I read the file. Will see what happens, thanks!

--hsm

"Never try to teach a pig to sing...it wastes your time and it annoys the pig."

Replies are listed 'Best First'.
Re^3: A problem with dash typography
by 1nickt (Canon) on Sep 09, 2015 at 16:03 UTC

    If you put:

    use utf8;
    at the top of the script, this tells Perl that your source code contains UTF8-encoded unicode characters.

    If you want to read and write UTF8, do this at the top of the script:

    binmode STDIN, ':utf8'; binmode STDOUT, ':utf8';
    Hope this helps!

    The way forward always starts with a minimal test.
      use utf8; is now in my new file template! And the change to STDIN is good, but what I need is a change to read IO in general...

      --hsm

      "Never try to teach a pig to sing...it wastes your time and it annoys the pig."