From 86051e4cd75971471648e6edae87f102effb3d8b Mon Sep 17 00:00:00 2001 From: lilleman Date: Mon, 6 Apr 2015 23:25:32 +0200 Subject: [PATCH] Never encode something in latin1 if we have the option to not to --- defs.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/defs.js b/defs.js index 6aa9d2c..e14e76e 100644 --- a/defs.js +++ b/defs.js @@ -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'); },