Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^9: avoid writing 'use utf8' in every script

by Jim (Curate)
on Feb 04, 2014 at 22:00 UTC ( [id://1073481]=note: print w/replies, xml ) Need Help??


in reply to Re^8: avoid writing 'use utf8' in every script
in thread avoid writing 'use utf8' in every script

Funny you waited until now to mention this. You might have mentioned it earlier.

Yes, I run Perl scripts in UTF-8 with BOMs on Windows all the time. It works brilliantly. This is why I recommended it to you in response to your original inquiry:  "[H]ow [do I] avoid writing 'use utf8' in every child script…?" Use BOMs instead, that's how. It's the documented way to let the perl interpreter know your script is in the UTF-8 character encoding scheme of Unicode.

If your Unicode Perl scripts don't run on Windows just because they have BOMs in them, then something's wrong. Could it be that you're trying to use Unicode with an ancient and inadequate version of Perl?

Jim

Replies are listed 'Best First'.
Re^10: avoid writing 'use utf8' in every script
by vsespb (Chaplain) on Feb 18, 2014 at 12:06 UTC
    Hm, according to my testings UTF-8 BOM (on Linux) does not work at all (does not affect how perl behaves). And this note in documentation is just wrong.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (2)
As of 2024-04-26 03:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found