02:postgresql Character Sets

Source: Internet
Author: User
Tags postgresql

In the use of PostGIS import shapefile file to PostgreSQL database, always prompt string problem, or garbled, tried several kinds of not, so degrees Niang ....

Using the default UTF8, the prompt message is: latin1;unable to convert data value to UTF-8 (Iconv reports "illegal byte sequence") is recommended. Current encoding is "UTF-8". Try "LATIN1" (Western European), or one of the values described at Http://www.postgresql.org/docs/current/static/multibyt E.html.

When using LATIN1, the situation is: can be successfully imported, all Chinese in the case is garbled;

Finally, the use of GBK, the result is still possible, there is no garbled situation;

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

PostgreSQL Character Sets

02:postgresql Character Sets

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.