| От | Dimitri Fontaine |
|---|---|
| Тема | Re: Need magic to clean strings from unconvertible UTF8 |
| Дата | |
| Msg-id | m2aalk6nkh.fsf@2ndQuadrant.fr обсуждение исходный текст |
| Ответ на | Need magic to clean strings from unconvertible UTF8 (Andreas <maps.on@gmx.net>) |
| Список | pgsql-general |
Andreas <maps.on@gmx.net> writes: > I can find the problematic rows. > How could I delete every char in a string that can't be converted to > WIN1252? http://tapoueh.org/articles/blog/_Getting_out_of_SQL_ASCII,_part_1.html http://tapoueh.org/articles/blog/_Getting_out_of_SQL_ASCII,_part_2.html That's using an hand-crafted translate expression, you could also use the recode library that does a pretty good job. Maybe the easiest way here would be using some plpythonu procedure using librecode? http://packages.debian.org/sid/python-bibtex Well or the same in plperl… or even easier, process the source files before importing them? Regards, -- Dimitri Fontaine http://2ndQuadrant.fr PostgreSQL : Expertise, Formation et Support
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера