无效的语言环境名称 Chinese (Simplified)_People''s Republic of China.936
Posted mobiusmap
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了无效的语言环境名称 Chinese (Simplified)_People''s Republic of China.936相关的知识,希望对你有一定的参考价值。
pg9.6 或 pg10 在Windows Server 2012 R2 DataCenter 中使用。
使用如下建库语句,建库时
CREATE DATABASE upmap
WITH
OWNER = postgres
ENCODING = ‘UTF8‘
LC_COLLATE = ‘Chinese (Simplified)_People‘‘s Republic of China.936‘
LC_CTYPE = ‘Chinese (Simplified)_People‘‘s Republic of China.936‘
TABLESPACE = up_map
CONNECTION LIMIT = -1;
出现如下错误:(无效的语言环境名称 Chinese (Simplified)_People‘‘s Republic of China.936)
解决办法:
1、查看 安装目录的PostgreSQL9.6data 文件夹中的 postgresql.conf 文件中
找到如下配置:
# These settings are initialized by initdb, but they can be changed.
lc_messages = ‘Chinese (Simplified)_China.936‘ # locale for system error message
# strings
lc_monetary = ‘Chinese (Simplified)_China.936‘ # locale for monetary formatting
lc_numeric = ‘Chinese (Simplified)_China.936‘ # locale for number formatting
lc_time = ‘Chinese (Simplified)_China.936‘ # locale for time formatting
2、修改建库语句中的语言指定
将
Chinese (Simplified)_People‘‘s Republic of China.936
修改为
Chinese (Simplified)_China.936
CREATE DATABASE upmap
WITH
OWNER = postgres
ENCODING = ‘UTF8‘
LC_COLLATE = ‘Chinese (Simplified)_China.936‘
LC_CTYPE = ‘Chinese (Simplified)_China.936‘
TABLESPACE = up_map
CONNECTION LIMIT = -1;
以上是关于无效的语言环境名称 Chinese (Simplified)_People''s Republic of China.936的主要内容,如果未能解决你的问题,请参考以下文章
带有缅甸语言环境的 Android Adform 横幅。 “键“height”的值“၅၀”无效,已被忽略
设置 MeasurementFormatter 实例的语言环境会使该实例上设置的任何 numberFormatter 属性选项无效