Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation

Re: Postgres UTF-8 woes

by erix (Parson)
on May 08, 2019 at 21:48 UTC ( #1233477=note: print w/replies, xml ) Need Help??

in reply to Postgres UTF-8 woes

I don't really see through your problem but have you tried various settings for pg_enable_utf8 ? (There's some info in perldoc DBD::Pg).

In a quick test with your data and DBI/DBD::Pg but without DBIx::Class, I needed $dbh->{pg_enable_utf8} = 0;

Replies are listed 'Best First'.
Re^2: Postgres UTF-8 woes
by 1nickt (Abbot) on May 08, 2019 at 22:56 UTC

    Thanks erix, I'll try that. My understanding of pg_enable_utf8 was that it only affects data retrieved from the DB, and is not normally needed with Pg >3.0, but I did try setting it to 1 from the default -1. I'll see if 0 affects it.

    The way forward always starts with a minimal test.

      Thank you very much indeed for the tip Master erix. Your help solved my problem.

      The way forward always starts with a minimal test.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1233477]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (5)
As of 2020-10-20 14:58 GMT
Find Nodes?
    Voting Booth?
    My favourite web site is:

    Results (210 votes). Check out past polls.