Search Postgresql Archives

Re: Encoding Conversion

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Wilton Wonrath <wrwonrath@xxxxxxxxxxxx> 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

-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux