Never encode something in latin1 if we have the option to not to

This commit is contained in:
2015-04-06 23:25:32 +02:00
parent 71f9deca8e
commit 86051e4cd7
+6 -2
View File
@@ -402,9 +402,13 @@ encodings.ASCII = { // GSM 03.38
encodings.ASCII.init();
encodings.LATIN1 = {
match: function(value) {
return value === iconv.decode(iconv.encode(value, 'latin1'), 'latin1');
// Never use this for new messages
match: function() {
return false;
},
/*match: function(value) {
return value === iconv.decode(iconv.encode(value, 'latin1'), 'latin1');
},*/
encode: function(value) {
return iconv.encode(value, 'latin1');
},