| От | Peter Eisentraut |
|---|---|
| Тема | Re: From ASCII to UTF-8 |
| Дата | |
| Msg-id | 200602260137.51702.peter_e@gmx.net обсуждение исходный текст |
| Ответ на | From ASCII to UTF-8 ("Clodoaldo Pinto" <clodoaldo.pinto@gmail.com>) |
| Список | pgsql-general |
Clodoaldo Pinto wrote:
> As part of a migration from 8.0 to 8.1 i want to convert the data
> from ASCII to UTF-8.
ASCII is a subset of UTF-8, so if you really wanted to do that you
wouldn't need to do anything.
> I dumped the database with pg_dump (8.0) and tried to convert it with
> iconv, but it shows an error:
>
> $ iconv -t ASCII -t UTF-8 fahstats_data.dump -o
^^ ^^
Mistake?
> fahstats_data_utf-8.dump iconv: illegal input sequence at position
> 71407864
>
> That position contains the decimal value 233:
Well, that is not an ASCII character, so you need to use a different
source encoding for iconv.
--
Peter Eisentraut
http://developer.postgresql.org/~petere/
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера