Search notes:

Vim: E197: Cannot set language to "en_US.UTF-8"

The following command caused the error message E197: Cannot set language to "en_US.UTF-8"
:language message en_US.UTF-8
In the shell (running in Debian), locale -a doesn't report the locale en_US.UTF-8:
$ locale -a
C
C.UTF-8
POSIX
Uncomment en_US.UTF-8 in /etc/locale.gen:
$ sudo sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen
Then:
$ sudo locale-gen
…
$ locale-a
rene@tq84-vm:~$ locale -a
C
C.UTF-8
POSIX
en_US.utf8

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/developm...', 1758207398, '216.73.216.150', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/vim/error-messages/E197_Cannot-set-language-to-en_US_UTF-8(54): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78