Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^2: A problem with dash typography

by hsmyers (Canon)
on Sep 09, 2015 at 15:03 UTC ( #1141430=note: print w/replies, xml ) Need Help??


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 (Abbot) 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."

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1141430]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (7)
As of 2019-11-14 19:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Strict and warnings: which comes first?



    Results (80 votes). Check out past polls.

    Notices?