yycGIS

我们曾如此渴望命运的波澜,到最后才发现:人生最曼妙的风景,竟是内心的淡定与从容。 我们曾如此期盼外界的认可,到最后才知道:世界是自己的,与他人毫无关系。

Less is more, more is different!

导航

02:PostgreSQL Character Sets

在利用postGIS导入shapefile文件到postgresql数据库的时候,老是提示字符串的问题,或者是乱码,试了好几种都不行,于是度娘之。。。。

使用默认的UTF8,提示信息是:建议使用LATIN1;Unable to convert data value to UTF-8 (iconv reports "Illegal byte sequence"). Current encoding is "UTF-8". Try "LATIN1" (Western European), or one of the values described at http://www.postgresql.org/docs/current/static/multibyte.html.

使用LATIN1时,出现的情况是:能成功导入,里面所有中文的情况都是乱码的;

最后使用GBK,结果还是可以的,没有出现乱码的情况;

找到:http://www.postgresql.org/docs/current/static/multibyte.html

PostgreSQL Character Sets

 

posted on 2015-04-12 20:35  yycGIS  阅读(557)  评论(0编辑  收藏  举报