Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^2: using binmode() to override default encoding specified in "use open"

by raygun (Scribe)
on Jul 22, 2020 at 12:21 UTC ( [id://11119638]=note: print w/replies, xml ) Need Help??


in reply to Re: using binmode() to override default encoding specified in "use open"
in thread using binmode() to override default encoding specified in "use open"

Hm. :encoding() not being a function, and perldoc encoding talking about something unrelated, it wasn't immediately clear where to find :encoding()'s documentation. I ended up choosing utf8 over UTF-8 because perldoc Encode::Supported, which I found when casting about for encoding info, indicated the former form was canonical. But now I suspect I should have been looking at perldoc Encode instead.

But I'm still not completely sure. Perl's encoding documentation is a twisty maze of little passages, all different, and I've not yet found a signpost definitively stating "These are the legal arguments to :encoding() and what they mean."

Replies are listed 'Best First'.
Re^3: using binmode() to override default encoding specified in "use open"
by ikegami (Patriarch) on Jul 23, 2020 at 04:31 UTC

    That is incorrect. "utf8" is an extension to UTF-8 used by Perl internally. "UTF-8" is the standard encoding. (The names are case-insensitive.)

    I have no idea why that pages says they are equivalent. They are not. See :encoding(UTF-8) vs :encoding(utf8) vs :utf8.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (2)
As of 2024-04-26 06:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found