Add locale

2022-02-15

When I run a ruby script(with erb and redcarpet gems), encountered the error.

/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.utf8)

Solved like below, first, uncomment the locale(en_US.UTF8) from the file.

sudo vi /etc/locale.gen

Then run the command.

sudo locale-gen

https://itnext.io/linux-setlocale-lc-all-cannot-change-locale-en-us-utf8-and-cyrillic-symbols-2d846fe3c166