T
T
Tesla_Rails2014-02-19 17:05:39
PostgreSQL
Tesla_Rails, 2014-02-19 17:05:39

How to create a Postgresql database with UTF-8 encoding in Ubuntu?

How to create a Postgresql database with UTF-8 encoding in Ubuntu?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Max, 2014-02-19
@Tesla_Rails

CREATE DATABASE "test"
  WITH OWNER "user"
  ENCODING 'UTF8'
  LC_COLLATE = 'ru_RU.UTF-8'
  LC_CTYPE = 'ru_RU.UTF-8';

K
ky0, 2014-02-19
@ky0

createdb -E UNICODE %basename%

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question