Re: PostgreSQL driver DBD::Pg releases version 3.0.0

"David E. Wheeler" <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.dbi.general
Message-ID <[email protected]>
On Feb 7, 2014, at 3:59 AM, Peter J. Holzer <[email protected]> wrote:

>> o Decoding incoming data
>> $$item{$_} = decode('utf-8', $$item{$_} || '') for keys %$item
> 
> Same here. With pg_enable_utf8 I would expect to get character strings,
> not byte strings, so no decode should be necessary.

With 3.0.0, if you have your client_encoding set to UTF-8, you can delete the call to pg_enable_utf8 and it will DTRT.

This has been a long time coming, but most welcome.

David
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.