X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/eb06a0135511fc5b5422f07ca5344ce114402a61..6e4603fc4102eaf7563ff0063b6f23b74bd6ddc7:/IkiWiki/Setup/Yaml.pm diff --git a/IkiWiki/Setup/Yaml.pm b/IkiWiki/Setup/Yaml.pm index 8b876e297..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; @@ -13,7 +14,8 @@ sub loaddump ($$) { eval q{use YAML::Any}; eval q{use YAML} if $@; die $@ if $@; - IkiWiki::Setup::merge(Load($content)); + $YAML::Syck::ImplicitUnicode=1; + IkiWiki::Setup::merge(Load(encode_utf8($content))); } sub gendump ($@) {