in reply to Re: Wide Characters??
in thread Wide Characters??

Tried that, it doesn't work. I also removed the 'use warnings' from my script. Unfortuantely, the opening/closing is n modules deep and I'd really like to not modify module code if I don't have to.

Thanks,
--J

Replies are listed 'Best First'.
Re: Re: Re: Wide Characters??
by ysth (Canon) on Feb 18, 2004 at 19:20 UTC
    Where does the wide character come from? You either need to tell perl that that output handle takes utf8 (with binmode or in the open), or if you want to treat that source of input as non-utf8, don't do whatever you are doing to make perl think it has utf8.

    If you are using perl5.8.0 and have your locale set as utf8 (as is the default under some OS's), either changing to a non-utf8 locale or upgrading perl may help.

    Note that use bytes is lexically scoped just like use warnings, and isn't a general panacea anyway; newer perls shouldn't encode things as utf8 unless they get lied to about the input.