PostgreSql: 'utf8' codec can't decode byte 0xe9 in position 42: invalid continuation byte

narcisse picture narcisse · Aug 26, 2017 · Viewed 14.4k times · Source

I recently installed PostgreSql and I am trying to create a new database. Unfortunetly I got and error while creating the database:

"'utf8' codec can't decode byte 0xe9 in position 42: invalid continuation byte" enter image description here

What is the problem exactly thank you

Answer

zesage picture zesage · Nov 1, 2017

Try to add the following line at the end of the pg_hba.conf file and then restart the PostgreSQL service:

host    all             all             all                 md5