From: Stevan Little Date: Tue, 16 Oct 2007 04:24:25 +0000 (+0000) Subject: fixing some utf stuff we forgot X-Git-Tag: 0_09~4 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=cfd67eab5a55f6c71710f29fc745acc1ae33e6c8;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 ec23204..761557b 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) or utf8::valid($json); + utf8::encode($json) if utf8::is_utf8($json); my $data = eval { JSON::Any->jsonToObj($json) }; if ($@) {