Skip to content

Instantly share code, notes, and snippets.

@false-git
Created December 27, 2014 04:20
Show Gist options
  • Save false-git/852c47bfe1179cb6a5a0 to your computer and use it in GitHub Desktop.
Save false-git/852c47bfe1179cb6a5a0 to your computer and use it in GitHub Desktop.
--- a/lib/MT/Object.pm
+++ b/lib/MT/Object.pm
@@ -301,10 +301,10 @@ sub install_properties {
return unless $dbd->need_encode;
my $data = $obj->get_values;
- foreach ( keys %$data ) {
- $data->{$_} = Encode::encode( $enc, $data->{$_} )
- if Encode::is_utf8( $data->{$_} );
- }
+# foreach ( keys %$data ) {
+# $data->{$_} = Encode::encode( $enc, $data->{$_} )
+# if Encode::is_utf8( $data->{$_} );
+# }
$obj->set_values( $data, { no_changed_flag => 1 } );
},
);
@@ -318,12 +318,12 @@ sub install_properties {
if ( 'HASH' eq ref($terms) ) {
while ( my ( $k, $v ) = each %$terms ) {
- $terms->{$k} = _encode_terms($v);
+# $terms->{$k} = _encode_terms($v);
}
}
elsif ( 'ARRAY' eq ref($terms) ) {
for ( my $i = 0; $i < scalar(@$terms); ++$i ) {
- $terms->[$i] = _encode_terms( $terms->[$i] );
+# $terms->[$i] = _encode_terms( $terms->[$i] );
}
}
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment