I was trying to run Nikto and got this error. It was on DO server which I used SSH terminal to connect from macOS. If you are encountering this error, here is how you can fix.
Solution
Export the following locale on your terminal and run the program. It ran smoothly to me and hope it helps you too. This is fine if you just need to do one time. However, if you need to run it periodically then you may want to set this in profile so it loads during logon.
Go to the user’s home directory Modify .bash_profile (assuming you are using bash) using vi Add the following and save the file
That’s all! Now, I can run Perl 😊