How to create a database with UTF-8 collation in PostgreSQL on Windows?

后端 未结 2 475
死守一世寂寞
死守一世寂寞 2021-02-06 10:55

I\'m configuring PostgreSQL db for the Bitbucket Server on Windows. In the official guide it says that:

The database must be configured to use the UTF-8 c

2条回答
  •  北恋
    北恋 (楼主)
    2021-02-06 10:56

    There is no UTF8 collation. UTF8 is a way to encode characters as numbers, a so-called encoding. Collations define how characters (and composites) are ordered.

    While you have to pick a collation that matches the database encoding with PostgreSQL on UNIX, that is not required on Windows. Maybe the documentation you are reading is targeted at UNIX.

    You should ask the people who wrote the software to tell you what collation to use.

提交回复
热议问题