The Problem
I have a fresh setup of postgres 10.5 and symfony 4 application running on php 7.1. But when I try running migration. I keep getting the following Invalid value for parameter "client_encoding": "utf8mb4" error.

Steps to reproduce
- On
.envfile by modify DSN to correct value based on the your settings for eg. mine wasDATABASE_URL="pgsql://postgres:password@db:5432/a_db". - Create an entity (Any would do) using
php bin/console make:entity - Make Migration file
php bin/console make:migration
Expected Result
I should have received Success message.
So my Question is
What did I miss here as I have followed the documentation?