Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Postgres UTF-8 woes

by erix (Prior)
on May 08, 2019 at 21:48 UTC ( [id://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 (Canon) 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?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (7)
As of 2024-04-24 17:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found