X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/eb06a0135511fc5b5422f07ca5344ce114402a61..18e026ea0f9cfdab39d212754d992accd76f3d83:/IkiWiki/Setup/Yaml.pm?ds=inline 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 ($@) {