2016-06-22 4 views
1

출력 메시지는 여기에 있습니다 :pg_dump를 사용하여 postgres를 백업하면 오류가 발생합니다. 어떻게이 오류를 제거 할 수 있습니까?

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;

답변

2

그들은 키는 다음과 같습니다

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

당신은 인코딩 오류가 있습니다. 그것을 극복하기 위해, 또한 pg_dump의 위해 -Fc 옵션을 사용하는 것이

pg_dump -E UTF8 

으로 UTF8 형식의 데이터를 덤프. 자세한 내용 : https://www.postgresql.org/docs/9.1/static/app-pgdump.html

+0

감사합니다. 그것은 작동합니다. –

+0

도움이 된 것을 기쁘게 생각합니다. – e4c5