perl: warning: Setting locale failed

A weird issue encountered while trying to run laravel’s php artisan commands while logged in using SSH. Following was the error. perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset),...