Never encode something in latin1 if we have the option to not to
This commit is contained in:
@@ -402,9 +402,13 @@ encodings.ASCII = { // GSM 03.38
|
|||||||
encodings.ASCII.init();
|
encodings.ASCII.init();
|
||||||
|
|
||||||
encodings.LATIN1 = {
|
encodings.LATIN1 = {
|
||||||
match: function(value) {
|
// Never use this for new messages
|
||||||
return value === iconv.decode(iconv.encode(value, 'latin1'), 'latin1');
|
match: function() {
|
||||||
|
return false;
|
||||||
},
|
},
|
||||||
|
/*match: function(value) {
|
||||||
|
return value === iconv.decode(iconv.encode(value, 'latin1'), 'latin1');
|
||||||
|
},*/
|
||||||
encode: function(value) {
|
encode: function(value) {
|
||||||
return iconv.encode(value, 'latin1');
|
return iconv.encode(value, 'latin1');
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user