http://www.perlmonks.org?node_id=1233477


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.