Answer the question
In order to leave comments, you need to log in
How to change docker postgresql encoding?
Postgres service added to docker-compose:
postgres:
image: postgres:11.3-alpine
...
environment:
- LANG:'ja_JP.UTF-8'
- LANGUAGE:'ja_JP.UTF-8'
- LC_ALL:'ja_JP.UTF-8'
Answer the question
In order to leave comments, you need to log in
You are setting the environment incorrectly. Fix like this:
environment:
- LANG=ja_JP.eucJP
- LANGUAGE=ja_JP.eucJP
- LC_ALL=ja_JP.eucJP
- POSTGRES_INITDB_ARGS='-E EUC_JP'
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question