Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^2: Why does Perl choke on my UTF8 identifier?

by Intrepid (Deacon)
on Mar 30, 2021 at 20:20 UTC ( [id://11130610]=note: print w/replies, xml ) Need Help??


in reply to Re: Why does Perl choke on my UTF8 identifier?
in thread Why does Perl choke on my UTF8 identifier?

<meta http-equiv="Content-type" content="text/html;charset=cswindows1252">

Aha! blaming the editor is correct. Your advice (Thank You!) was spot-on. I use vim too, and indeed, the fileencoding was set to iso-8859. I corrected that and ran the program successfully. I only feel a little under-educated. Effective Perl Programming should have had a note about editors and their codepages and how use utf8 won't dwim if the editor is saving the program text as something else ;-).

Examine what is said, not who speaks.
Love the truth but pardon error.
Silence betokens consent.
In the absence of evidence, opinion is indistinguishable from prejudice.
  • Comment on Re^2: Why does Perl choke on my UTF8 identifier?

Replies are listed 'Best First'.
Re^3: Why does Perl choke on my UTF8 identifier?
by bibliophile (Prior) on Mar 31, 2021 at 14:54 UTC

    Wishful thinking on my part... aren't we long overdue to have editors default to UTF-8?

    use OldMan::Yelling::AtClouds;

    -bib

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (2)
As of 2024-04-20 05:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found