use UTF8 JSON encoding and decoding universally

fixed: Import/Export of packages with international text is broken
This commit is contained in:
Graham Knop 2008-04-01 14:42:20 +00:00
parent 35bfeac0ef
commit 9ed284beec
16 changed files with 42 additions and 40 deletions

View file

@ -398,7 +398,7 @@ sub showDebug {
$form->{$key} = "********";
}
}
$text = JSON->new->pretty->encode($form);
$text = JSON->new->utf8->pretty->encode($form);
$text =~ s/&/&/sg;
$text =~ s/>/>/sg;
$text =~ s/</&lt;/sg;