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