加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

更改PostgreSQL和PostGIS使用的LC_CTYPE

发布时间:2020-12-13 16:38:48 所属栏目:百科 来源:网络整理
导读:所以我正在通过GeoDjango教程,我坚持这个错误信息: postgres@lucid32:~$ createdb -E UTF8 template_postgiscreatedb: database creation failed: ERROR: encoding UTF8 does not match locale en_USDETAIL: The chosen LC_CTYPE setting requires encodin
所以我正在通过GeoDjango教程,我坚持这个错误信息:
postgres@lucid32:~$ createdb -E UTF8 template_postgis
createdb: database creation failed: ERROR:  encoding UTF8 does not match locale en_US
DETAIL:  The chosen LC_CTYPE setting requires encoding LATIN1.

我已经搜索并阅读了一些Ubuntu文档,但没有效果。任何见解将不胜感激!

我使用默认的Vagrant Box lucid 32来测试我的设置。

最好只是指定数据库的区域设置,并从中找出编码。所以使用类似的东西
createdb --locale=en_US.utf8 template_postgis

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读