| От | Tom Lane |
|---|---|
| Тема | Re: Encoding Conversion |
| Дата | |
| Msg-id | 24084.1296751901@sss.pgh.pa.us обсуждение |
| Ответ на | Encoding Conversion (Wilton Wonrath <wrwonrath@yahoo.com.br>) |
| Список | pgsql-general |
Wilton Wonrath <wrwonrath@yahoo.com.br> writes:
> When I�m doing a conversion PostgreSQL returns SCAPES to me besides the desire
> caracter. Why ?
Somewhere between 8.2 and 9.0 convert() was redefined to take and return
bytea, not text, to reflect the fact that the data it deals in isn't
necessarily encoded in the database's character encoding. This was part
of a general tightening up to ensure that text that ought to be in the
database encoding really is.
There are some related functions now that convert between text (assumed
to be in the database encoding) and bytea strings in a specified
encoding. You probably want to switch over to using those.
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера