postgresql - How do you change the character encoding of a postgres database? -


i have database set default character set sql_ascii. want switch unicode. there easy way that?

  1. dump database
  2. drop database,
  3. create new database different encoding
  4. reload data.

make sure client encoding set correctly during this.

source: http://archives.postgresql.org/pgsql-novice/2006-03/msg00210.php


Comments

Popular posts from this blog

Javascript line number mapping -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -