#問題点
postgreSQLのコードがなぜかドイツ語です。
なぜドイツ語になっているのかわかりません。
↓こんな感じです
sql
1db=# \l 2 Liste der Datenbanken 3 Name | Eigentümer | Kodierung | Sortierfolge | Zeichentyp | Zugriffspriv 4ilegien 5-----------+------------+-----------+--------------+-------------+-------------- 6--------- 7 blogapp | postgres | UTF8 | ja_JP.UTF-8 | ja_JP.UTF-8 | 8 db | postgres | UTF8 | ja_JP.UTF-8 | ja_JP.UTF-8 | =Tc/postgres 9 + 10 | | | | | postgres=CTc/ 11postgres+ 12 | | | | | dbuser=CTc/po 13stgres 14 postgres | postgres | UTF8 | ja_JP.UTF-8 | ja_JP.UTF-8 | 15 template0 | postgres | UTF8 | ja_JP.UTF-8 | ja_JP.UTF-8 | =c/postgres 16 + 17 | | | | | postgres=CTc/ 18postgres 19 template1 | postgres | UTF8 | ja_JP.UTF-8 | ja_JP.UTF-8 | =c/postgres 20 + 21 | | | | | postgres=CTc/ 22postgres 23(5 Zeilen)
#やってみたこと
select name,setting,context from pg_settings where name like 'lc%';で一応文字コードを確認してみたのですが、私にはどこが間違っているのかわかりません。
詳しい方に教えていただきたいです。
sql
1db=# select name,setting,context from pg_settings where name like 'lc%'; 2 name | setting | context 3-------------+-------------+----------- 4 lc_collate | ja_JP.UTF-8 | internal 5 lc_ctype | ja_JP.UTF-8 | internal 6 lc_messages | ja_JP.UTF-8 | superuser 7 lc_monetary | ja_JP.UTF-8 | user 8 lc_numeric | ja_JP.UTF-8 | user 9 lc_time | ja_JP.UTF-8 | user 10(6 Zeilen)
sql
1postgres=# show lc_messages; 2 lc_messages 3------------- 4 ja_JP.UTF-8 5(1 Zeile)
sql
1-bash-4.2$ printenv LANG 2de_DE.UTF-8 3-bash-4.2$ localectl 4 System Locale: LANG=de_DE.UTF-8 5 VC Keymap: de 6 X11 Layout: de 7-bash-4.2$
#環境
CentOs
回答1件
あなたの回答
tips
プレビュー