Ignore:
Timestamp:
01/17/19 19:04:00 (5 years ago)
Author:
nanardon
Message:

Remove old and now useless utf8 hack

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LATMOS-Accounts-Web/lib/LATMOS/Accounts/Web/View/Json.pm

    r1631 r2176  
    1010    expose_stash    => 'data', # defaults to everything 
    1111); 
    12  
    13 use JSON::XS (); 
    14  
    15 sub encode_json { 
    16     my($self, $c, $data) = @_; 
    17     my $encoder = JSON::XS->new->pretty->allow_nonref; 
    18     my $res = $encoder->encode($data); 
    19     # This fix an issue on old Catalyst... 
    20     utf8::decode($res); 
    21     $res 
    22 } 
    23  
    2412 
    2513=head1 NAME 
Note: See TracChangeset for help on using the changeset viewer.