How to disable Unicode?

  • Thread starter Hallvard B Furuseth
  • Start date
H

Hallvard B Furuseth

I have some perl5.6/5.004 scripts that I need to get quickly to work for
perl5.8. Is there an easy way to disable Unicode handling for a whole
script?

I've tried to insert
BEGIN { delete @ENV{qw(LANGUAGE LC_ALL LANG)}; }
use bytes;
but apparently Unicode mode is invoked before the script unsets those
variables. Besides, even if it worked I'd be nervous about not catching
all variables that can cause Unicode mode -- I need to be quite sure
Perl won't turn on Unicode mode because someone set a variable I didn't
know about.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,776
Messages
2,569,603
Members
45,189
Latest member
CryptoTaxSoftware

Latest Threads

Top