2016-06-22 17 views
1

Die Ausgangsnachricht ist hier:Wenn ich pg_dump zum Sichern von Postgres verwende, tritt ein Fehler auf. Wie kann ich diesen Fehler beheben?

pg_dump: Dumping the contents of table "categorytype_show" failed: PQgetResult() failed. pg_dump: Error message from server: ERROR: character with byte sequence 0xef 0xbb 0xbf in encoding "UTF8" has no equivalent in encoding "GBK" pg_dump: The command was: COPY public.categorytype_show (categoryid, categorylevel, categoryname, categoryparentid, leafcategory, catalogenabled, autopayenabled, b2bvatenabled, bestofferenabled, expired, intlautosfixedcat, keywords, lsd, numofitems, orpa, orra, sellerguaranteeeligible, virtual, itemtype, isselect, imgurl, id, ctime) TO stdout;

Antwort

2

Schlüssel ist:

ERROR: character with byte sequence 0xef 0xbb 0xbf in encoding "UTF8" has no equivalent in encoding "GBK"

Sie einen Codierungsfehler haben. Zur Überwindung dass Dump die Daten im UTF8-Format als

pg_dump -E UTF8 

Sehen Sie sich auch mit der -Fc Option pg_dump. Mehr Details unter: https://www.postgresql.org/docs/9.1/static/app-pgdump.html

+0

danke. Es klappt. –

+0

froh, geholfen zu haben – e4c5