| От | Tom Lane |
|---|---|
| Тема | Re: Going from a DB using SQL_ASCII to UNICODE |
| Дата | |
| Msg-id | 2263.1082424044@sss.pgh.pa.us обсуждение |
| Ответ на | Going from a DB using SQL_ASCII to UNICODE ("Dion Almaer" <dion@almaer.com>) |
| Ответы |
Re: Going from a DB using SQL_ASCII to UNICODE
|
| Список | pgsql-admin |
"Dion Almaer" <dion@almaer.com> writes:
> When we try to import the data from a SQL_ASCII dumped db, into the new
> UNICODE db, everything freaks out.
I'm no expert on this stuff, but I think what you need to do is add
set client_encoding = sql_ascii;
to the top of the dump file. (As of fairly recently, pg_dump will
automatically add such a SET, but I'm pretty sure 7.4.2 won't.)
If that doesn't help, then what you have is actually not valid UTF-8
data, and what you'll have to do is figure out what encoding it's in and
specify that instead. If it's in a mishmash of different encodings,
you're in for some pain :-(
regards, tom lane
В списке pgsql-admin по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера