perltk <per...@maine.rr.com> writes:

> I have an app that is reading from a database. 

What database?
How does the app read fom the db?

I use wxPerl witl DBI with PostgreSQL and SQLite backends.
To have the database return real UTF-8 encoded stings, for PostgreSQL I
need to do: 

    $dbh->do("SET CLIENT_ENCODING TO 'UNICODE'");
    $dbh->{pg_enable_utf8} = 1;

For SQLite:

    if ( $DBD::SQLite::VERSION ge "1.26_06" ) {
        $dbh->{sqlite_unicode} = 1;
    }
    else {
        $dbh->{unicode} = 1;
    }

Probably your database needs something like this?

-- Johan

Reply via email to