aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki/Setup
diff options
context:
space:
mode:
Diffstat (limited to 'IkiWiki/Setup')
-rw-r--r--IkiWiki/Setup/Yaml.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/IkiWiki/Setup/Yaml.pm b/IkiWiki/Setup/Yaml.pm
index 904784728..6da93bb64 100644
--- a/IkiWiki/Setup/Yaml.pm
+++ b/IkiWiki/Setup/Yaml.pm
@@ -5,6 +5,7 @@ package IkiWiki::Setup::Yaml;
use warnings;
use strict;
use IkiWiki;
+use Encode;
sub loaddump ($$) {
my $class=shift;
@@ -14,7 +15,7 @@ sub loaddump ($$) {
eval q{use YAML} if $@;
die $@ if $@;
$YAML::Syck::ImplicitUnicode=1;
- IkiWiki::Setup::merge(Load($content));
+ IkiWiki::Setup::merge(Load(encode_utf8($content)));
}
sub gendump ($@) {