Logo Wael's Digital Garden

PostgreSQL - Create UTF-8 Database

PostgreSQL - Create UTF-8 Database#

Problem#

I want to create a new database ensuring encoding is set to UTF-8.

Solution#

CREATE DATABASE "db_name" WITH ENCODING = 'UTF8';

Related#