DBIx::Class::ForceUTF8 - Force UTF8 (Unicode) flag on columns
package Artist; __PACKAGE__->load_components(qw/ForceUTF8 Core/); # then belows return strings with utf8 flag $artist->name; $artist->get_column('description'); # with DBIx::Class::Schema::Loader package My::Schema; use base qw/DBIx::Class::Schema::Loader/; __PACKAGE__->loader_options( components => [qw/ForceUTF8/], );
DBIx::Class::ForceUTF8 allows you to get columns data that have Unicode flag without specifying a column name. Best used with DBIx::Class::Schema::Loader.
DBIx::Class::Schema::Loader, DBIx::Class::UTF8Columns.
Takahiro Horikawa <horikawa.takahiro@gmail.com>
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
The full text of the license can be found in the LICENSE file included with this module.
To install DBIx::Class::ForceUTF8, copy and paste the appropriate command in to your terminal.
cpanm
cpanm DBIx::Class::ForceUTF8
CPAN shell
perl -MCPAN -e shell install DBIx::Class::ForceUTF8
For more information on module installation, please visit the detailed CPAN module installation guide.