From: Stevan Little Date: Tue, 16 Oct 2007 04:20:25 +0000 (+0000) Subject: fixing some utf stuff we forgot X-Git-Tag: 0_09~5 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=41d0d37499d2791b32cdf3c11d9942602093ab45;p=gitmo%2FMooseX-Storage.git fixing some utf stuff we forgot --- diff --git a/lib/MooseX/Storage/Util.pm b/lib/MooseX/Storage/Util.pm index 761557b..ec23204 100644 --- a/lib/MooseX/Storage/Util.pm +++ b/lib/MooseX/Storage/Util.pm @@ -36,7 +36,7 @@ sub _inflate_json { eval { JSON::Any->import }; confess "Could not load JSON module because : $@" if $@; - utf8::encode($json) if utf8::is_utf8($json); + utf8::encode($json) if utf8::is_utf8($json) or utf8::valid($json); my $data = eval { JSON::Any->jsonToObj($json) }; if ($@) {