decode json with utf8 turned on
authorDobrica Pavlinusic <dpavlin@rot13.org>
Sun, 12 Jul 2009 17:42:27 +0000 (17:42 +0000)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Sun, 12 Jul 2009 17:42:27 +0000 (17:42 +0000)
git-svn-id: svn+ssh://mjesec/home/dpavlin/svn/webpac2/trunk@1241 07558da8-63fa-0310-ba24-9fe276d99e06

vhost/webpac2.cgi

index 67c2c4f..19dae1a 100755 (executable)
@@ -281,7 +281,7 @@ if ( my $search = param('search') ) {
 
                while ( my $result = $swish_results->next_result ) {
 
-                       my $data = from_json $result->property('data');
+                       my $data = from_json( $result->property('data'), {utf8 => 1} );
 
                        dump_yaml( 'data', $data );