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

Re^7: any use of 'use locale'? (source encoding)

by zwon (Abbot)
on Nov 23, 2009 at 13:40 UTC ( [id://808813]=note: print w/replies, xml ) Need Help??


in reply to Re^6: any use of 'use locale'? (source encoding)
in thread any use of 'use locale'?

You say:
Your locale is not used to determine the encoding of the source file.
I answer: how sad! Why i then define the locale in my system and ask Perl to use it?

Why do you think locale should be used to determine source file encoding? What if you created script using utf8 and I'm running it in latin1 locale, or utf16?

  • Comment on Re^7: any use of 'use locale'? (source encoding)

Replies are listed 'Best First'.
Re^8: any use of 'use locale'? (source encoding)
by ikegami (Patriarch) on Nov 23, 2009 at 17:54 UTC
    Then you override by using :encoding. That's already how it works with use open.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (2)
As of 2026-03-07 12:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.