Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • On a plus note, postgresql rocks.

    Ooh, on that note, you might be just the guy to help me write a new PostgreSQL driver. I haven't had the time to work on it in a few weeks, but I'm hoping to get back to it soon...

    --David

    • I noticed you'd just released the new DBD::Pg. Any idea when it'll support setting the UTF-8 flag on returned data? This was and is a large annoyance...

      Alternatively, any idea how hard it would be to add in myself? I haven't looked at the source yet...

      -Dom

      • If you build your database with --enable-multibyte and create the database with -E UNICODE, doesn't it just work?

        --David

        • Nope, I get doubly-encoded UTF8 because the data returned from the fetch isn't marked with Perl's UTF8 flag. Here's a test script:

          #!/usr/bin/perl -w

          use strict;
          use warnings;

          use 5.008;

          use charnames ':full';

          use DBI;

          my $dbh =
              DBI->connect( 'dbi:Pg:dbname=dom', 'dom', 'dom',
              { AutoCommit => 1, RaiseError => 1 } );

          binmode( STDOUT, ':utf8' );
          if ($ARGV[0] && $ARGV[0] eq 'setup' ) {
              $dbh->do( 'CREATE TABLE test ( name text )' );
              my $sth