Modified set_encoding

pull/26/head
Sheng 6 years ago
parent bd803328fc
commit 0fb6caa9ff

@ -75,13 +75,13 @@ jQuery(function($){
try {
test_decoder = new window.TextDecoder(new_encoding);
} catch(TypeError) {
console.log('Unvalid encoding ' + new_encoding);
console.log('Unknown encoding ' + new_encoding);
} finally {
if (test_decoder !== undefined) {
test_decoder = undefined;
encoding = new_encoding;
console.log('Set encoding to ' + encoding);
}
test_decoder = undefined;
}
};

Loading…
Cancel
Save