Subject: | UTF-8 |
Date: | Wed, 16 Feb 2011 15:11:43 +0200 |
To: | bug-Dancer-Plugin-Database [...] rt.cpan.org |
From: | Jury Gorky <jury.gorky [...] gmail.com> |
It's not a bug, it's a suggestion
I have a Dancer's config.yml with utf8 settings enabled:
charset: "UTF-8"
and
engines:
template_toolkit:
encoding: "utf8"
In this case when I select data from database and pass it to the
template, it is corrupted
The solution was to explicitly add "mysql_enable_utf8: 1" to
dbi_params in config file.
I think that the plugin could make use of the common Dancer 'charset'
setting, enabling utf for the database, or if it's not a good idea,
the need of using mysql_enable_utf8 should be mentioned in
documentation.