in reply to Re^2: How to display an apostrophe in pod2usage help output.
in thread How to display an apostrophe in pod2usage help output.

What's your LANG environment value?

pod2usage seems to translate ' to ’ when LANG indicates UTF-8 (for instance on my system, with LANG=en_US.UTF-8).

Try doing

export LANG=C

if that fixes the problem, you should make sure that either you configure your terminal to understand unicode, or you shouldn't be using a UTF-8 locale.

Replies are listed 'Best First'.
Re^4: How to display an apostrophe in pod2usage help output.
by dbmathis (Scribe) on Sep 16, 2007 at 18:01 UTC
    Joost, the export worked. The LANG env is set to =en_US.UTF-8.

    Now I have got to figure out how I am going to handle this. There are at least 150 different linux boxes at work that I will be using this on.

    Most everyone at work is connecting to these boxes via putty.

    Do you have any advice on how I should proceed which would ensure that the apostrophes will display correctly on any of these boxes?

    Thanks for your help

    Best Regards

    After all this is over, all that will really have mattered is how we treated each other.
        So based on what you have already told me, this seems to work. Is this safe?

        if ( $help ) { $lang = $ENV{'LANG'}; $ENV{'LANG'} = 'C'; pod2usage(-verbose => 2 ); $ENV{'LANG'} = $lang; }
        After all this is over, all that will really have mattered is how we treated each other.