Re: help to connect
Vincent Veyron <[email protected]>
| Newsgroups | gmane.comp.lang.perl.modules.dbi.general |
|---|---|
| Message-ID | <[email protected]> |
On Thu, 12 May 2016 13:12:41 +0200 (CEST) Jefferson Elias <[email protected]> wrote: > The password (which is normally the good one) contains several special and accented characters as follows: _é+#à. > Hi, I work with Postgres and mod_perl; when DBD::Pg moved to UFT8 by default, I had to modify my mod_perl scripts thus : add 'use utf8 ;' add 'binmode(STDOUT, ":utf8") ;' and for query parameters, change $args{$_} = $req->param($_) ; into $args{$_} = Encode::decode_utf8( $req->param($_) ) ; You probably need to decode_utf8 the password. -- Bien à vous, Vincent Veyron https://compta.libremen.com Logiciel de comptabilité générale, libre