Fixed – perl: warning: Setting locale failed – OSX Terminals

When you get this error while running some commands in SSH

perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
    LANGUAGE = (unset),
    LC_ALL = (unset),
    LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").


Here is the FIX
Adding the following lines to ~/.bash_profile on my your local machine, the warning should go away:
export LC_CTYPE=en_US.UTF-8

export LC_ALL=en_US.UTF-8

Restart Terminal to work with new settings.

WP Twitter Auto Publish Powered By : XYZScripts.com