add a cookbook entry re: UTF-8 and Config::General (Octavian Rasnita)
Brian Cassidy [Tue, 14 Oct 2008 12:14:12 +0000 (12:14 +0000)]
Changes
lib/Catalyst/Plugin/ConfigLoader.pm
lib/Catalyst/Plugin/ConfigLoader/Manual.pod

diff --git a/Changes b/Changes
index 089e235..5f940ab 100644 (file)
--- 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
index 16b27d8..8a84d43 100644 (file)
@@ -8,7 +8,7 @@ use NEXT;
 use Data::Visitor::Callback;
 use Catalyst::Utils ();
 
-our $VERSION = '0.21';
+our $VERSION = '0.22';
 
 =head1 NAME
 
index 4d4f9bd..2098a71 100644 (file)
@@ -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<Config::General>-based config file, you
+should add the following config information to MyApp.pm:
+
+    __PACKAGE__->config( 'Plugin::ConfigLoader' => {
+        driver => {
+            'General' => { -UTF8 => 1 },
+        }
+    } );
+
 =cut