Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to fix 'character map file `UTF-8' not found'

I'm setting up a UBI rhel8 container. I need to execute this command:

localedef -f UTF-8 -i en_US en_US.UTF-8

which failed with:

character map file `UTF-8' not found: No such file or directory
cannot read character map directory `/usr/share/i18n/charmaps': No such file or directory
like image 242
FedericoY Avatar asked Oct 09 '19 12:10

FedericoY


1 Answers

You need to install these packages

yum -y install glibc-locale-source glibc-langpack-en

and then re-run localedef command

like image 70
Mina Alber Avatar answered Sep 19 '22 19:09

Mina Alber