From: Brian Cassidy Date: Tue, 14 Oct 2008 12:14:12 +0000 (+0000) Subject: add a cookbook entry re: UTF-8 and Config::General (Octavian Rasnita) X-Git-Tag: v0.22~4 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=e0d47620128b3e74be5346662cf62f2e97874c3a;p=catagits%2FCatalyst-Plugin-ConfigLoader.git add a cookbook entry re: UTF-8 and Config::General (Octavian Rasnita) --- diff --git a/Changes b/Changes index 089e235..5f940ab 100644 --- a/Changes +++ b/Changes @@ -1,5 +1,8 @@ Revision history for Perl extension Catalyst::Plugin::ConfigLoader. +0.22 XXX + - add a cookbook entry re: UTF-8 and Config::General (Octavian Rasnita) + 0.21 Mon Aug 11 2008 - add a cookbook entry for converting an existing config to Config::General format diff --git a/lib/Catalyst/Plugin/ConfigLoader.pm b/lib/Catalyst/Plugin/ConfigLoader.pm index 16b27d8..8a84d43 100644 --- a/lib/Catalyst/Plugin/ConfigLoader.pm +++ b/lib/Catalyst/Plugin/ConfigLoader.pm @@ -8,7 +8,7 @@ use NEXT; use Data::Visitor::Callback; use Catalyst::Utils (); -our $VERSION = '0.21'; +our $VERSION = '0.22'; =head1 NAME diff --git a/lib/Catalyst/Plugin/ConfigLoader/Manual.pod b/lib/Catalyst/Plugin/ConfigLoader/Manual.pod index 4d4f9bd..2098a71 100644 --- a/lib/Catalyst/Plugin/ConfigLoader/Manual.pod +++ b/lib/Catalyst/Plugin/ConfigLoader/Manual.pod @@ -176,5 +176,16 @@ config, run the following one-liner (replacing MyApp with your app's name): perl -Ilib -MMyApp -MConfig::General -e 'Config::General->new->save_file("myapp.conf", MyApp->config);' +=head2 Using UTF-8 strings in a Config::General file + +If you have UTF-8 strings in your L-based config file, you +should add the following config information to MyApp.pm: + + __PACKAGE__->config( 'Plugin::ConfigLoader' => { + driver => { + 'General' => { -UTF8 => 1 }, + } + } ); + =cut