BUG #2861: when backup UTF-8 database,pgdump add comments not encoded in UTF-8

Поиск
Список
Период
Сортировка
От goodsforyou
Тема BUG #2861: when backup UTF-8 database,pgdump add comments not encoded in UTF-8
Дата
Msg-id 200612230353.kBN3rkNW053070@wwwmaster.postgresql.org
обсуждение исходный текст
Ответы Re: BUG #2861: when backup UTF-8 database,pgdump add comments not encoded in UTF-8  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-bugs
The following bug has been logged online:

Bug reference:      2861
Logged by:          goodsforyou
Email address:      goodsforyou@gmail.com
PostgreSQL version: 8.2.0 win32
Operating system:   Windows xp sp2 Simplified Chinese Version
Description:        when backup UTF-8 database,pgdump add comments not
encoded in UTF-8
Details:

When I make a backup of a UTF8 database then pg_dump add some comment to
backup file:

-- Started on 2006-12-23 11:04:38 中国标准时间
...
...
-- Completed on 2006-12-23 11:04:40 中国标准时间

'中国标准时间' means in English 'China standard
time'. Unfortunately it is encoded incorretly in GBK, not in UTF-8. It makes
following error during restore:

pg_restore: connecting to database for restore

pg_restore: [archiver (db)] Error while INITIALIZING:

pg_restore: [archiver (db)] could not execute query: ERROR:  invalid byte
sequence for encoding "UTF8": 0xd6d0

В списке pgsql-bugs по дате отправления:

Предыдущее
От: Aaron Bingham
Дата:
Сообщение: SIMILAR TO incorrect with alternation
Следующее
От: "Tomislav Karastojkovic"
Дата:
Сообщение: BUG #2857: Sequence and table partitioning