in reply to Re: PgPP invalid byte seqnence for encoding UTF8
in thread PgPP invalid byte seqnence for encoding UTF8
That did take care of the encoding error tho I don't understand why because I thought Perl was natively UTF-8. Anyway it works.
But now when I try to use that value to update a record like so:
I get DBD::PgPP::st execute failed: ERROR: array value must start with "{" or dimension information at character 33my $sth = $dbh->prepare("update userinfo set description=? where uid=$ +uid"); $sth->execute(encode('UTF-8',$userdata->[$i]->{description})) || die $ +sth->errstr;
This is confusing as the string is En démocratie, on a le droit d'avoir tort and character 33 is either an "a" or a "v" depending on whether it's counting form zero.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: PgPP invalid byte seqnence for encoding UTF8
by McA (Priest) on Mar 24, 2013 at 18:07 UTC | |
by cormanaz (Deacon) on Mar 24, 2013 at 18:54 UTC | |
by McA (Priest) on Mar 24, 2013 at 18:58 UTC | |
by cormanaz (Deacon) on Mar 24, 2013 at 19:10 UTC |
In Section
Seekers of Perl Wisdom