-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
database() requires manual setting of UTF-8 mode even with charset: "UTF-8" in place #73
Comments
Thanks for the heads up. Will look at it. I changed some minor details that might be making it misbehave. Can you please clarify if you are using Dancer1 or Dancer2? |
Sure, sorry about that, its Dancer2. |
Thought so, but better be sure before starting debugging a working module O:-) will look into it later today, hopefully. |
Did you try to use config.yml with your database details, and use just I am trying to debug your problem meanwhile. |
As far as I could check, when using the
Will try to understand if we can do the same when you supply the config from the |
Hey |
Sorry for the delay, I'll look this over and get back to you ASAP over the nest day or so |
No prob :) |
Sorry this waited so long! Looking at it, I think it's a bug introduced by refactoring (and apparently not tested enough to show up - that's not good). The code that sets the UTF-8 support is: https://metacpan.org/source/Dancer::Plugin::Database::Core#L248-271 However - it's looking at I'll try to find a bit of time to work on this in the near future if I can; things have been hectic lately with DIY and an impending baby any day now, though, so I can't promise an ETA. |
Greetings!
The POD says:
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.
The text was updated successfully, but these errors were encountered: