X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/f398ad035b973608d380c9939ea845d8e2a0cdc2..e07338bc0657c08d2358952c1dbc7b4c1b10d5d5:/IkiWiki/Setup/Yaml.pm 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 ($@) {