How to disable Unicode?

Discussion in 'Perl Misc' started by Hallvard B Furuseth, Jun 24, 2004.

  1. 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.

    --
    Hallvard
     
    Hallvard B Furuseth, Jun 24, 2004
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Robert Mark Bram
    Replies:
    0
    Views:
    3,993
    Robert Mark Bram
    Sep 28, 2003
  2. ygao

    unicode wrap unicode object?

    ygao, Apr 8, 2006, in forum: Python
    Replies:
    6
    Views:
    580
    =?ISO-8859-1?Q?=22Martin_v=2E_L=F6wis=22?=
    Apr 8, 2006
  3. Gabriele *darkbard* Farina

    Unicode digit to unicode string

    Gabriele *darkbard* Farina, May 16, 2006, in forum: Python
    Replies:
    2
    Views:
    547
    Gabriele *darkbard* Farina
    May 16, 2006
  4. gabor
    Replies:
    13
    Views:
    578
    Leo Kislov
    Nov 18, 2006
  5. Jean-Paul Calderone
    Replies:
    23
    Views:
    714
    Leo Kislov
    Nov 21, 2006
Loading...

Share This Page