PostgreSQL 9.1 installation and database encoding

前端 未结 3 2015
时光说笑
时光说笑 2021-02-06 10:39

I just did my first install of PostgreSQL 9.1 on Ubuntu 10.04.

note: I have done it a few times on Windows with an installer without issues.

After a bit of effor

3条回答
  •  佛祖请我去吃肉
    2021-02-06 11:07

    Creating the database via initdb with the encoding option (-E or --encoding=) did the trick for me on Mac Os X Snow Leopard:

    initdb -D  -E UTF8
    

    If you init the database this way it will create the database templates with the correct encoding also.

    Refer to the initdb documentation here and the encoding documentation here to choose the correct encoding.

提交回复
热议问题