Commit 0fb6caa9 by Sheng

Modified set_encoding

parent bd803328
...@@ -75,13 +75,13 @@ jQuery(function($){ ...@@ -75,13 +75,13 @@ jQuery(function($){
try { try {
test_decoder = new window.TextDecoder(new_encoding); test_decoder = new window.TextDecoder(new_encoding);
} catch(TypeError) { } catch(TypeError) {
console.log('Unvalid encoding ' + new_encoding); console.log('Unknown encoding ' + new_encoding);
} finally { } finally {
if (test_decoder !== undefined) { if (test_decoder !== undefined) {
test_decoder = undefined;
encoding = new_encoding; encoding = new_encoding;
console.log('Set encoding to ' + encoding); console.log('Set encoding to ' + encoding);
} }
test_decoder = undefined;
} }
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment