Skip to content

database() requires manual setting of UTF-8 mode even with charset: "UTF-8" in place #73

@drmuey

Description

@drmuey

Greetings!

The POD says:

if your application is configured to use UTF-8 (you've defined the charset setting in your app config as UTF-8) then support for UTF-8 for the database connection will be enabled, if we know how to do so for the database driver in use.

however (in GWT format):

Given config.yml has charset: "UTF-8"
and
Given an SQLite database with proper utf-8 data
When I use database( { driver => 'SQLite', database => $path_to_db })
Then the data is garbled until I $dbh->{sqlite_unicode} = 1; w/ the handle it returns.

May be SQLite specific or not, not sure ATM.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions