aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDavid Leonard <David.Leonard@digi.com>2020-08-26 14:37:10 +1000
committerDavid Leonard <David.Leonard@digi.com>2020-08-26 14:37:10 +1000
commit48973e3d72307ca84375d1c7811eb0b04def91ce (patch)
tree9fa7c6e3383895049b29b98b2d942a3204f9a6ac /src
parent599f545c0d905505516c6546ff77caced2aa14f1 (diff)
sms: fix CMDA SMS UTF-8 translation
Fixes incoming SMS translation issue seen on MC7354 when translating contents from Latin-1 encoding to UTF-8, because the encoding parameter "ISO−8859−1" used U+2212 (MINUS SIGN) instead of U+002D (HYPHEN-MINUS). [mm-sms-part-cdma.c:873] read_bearer_data_user_data(): text/data: ignored (latin to UTF-8 conversion error): 0: Conversion from character set 'ISO−8859−1' to 'UTF-8' is not supported Fix thanks to Peter Hunt
Diffstat (limited to 'src')
-rw-r--r--src/mm-sms-part-cdma.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mm-sms-part-cdma.c b/src/mm-sms-part-cdma.c
index 2903e846..6e3f1179 100644
--- a/src/mm-sms-part-cdma.c
+++ b/src/mm-sms-part-cdma.c
@@ -874,7 +874,7 @@ read_bearer_data_user_data (MMSmsPart *sms_part,
}
latin[i] = '\0';
- text = g_convert (latin, -1, "UTF-8", "ISO−8859−1", NULL, NULL, NULL);
+ text = g_convert (latin, -1, "UTF-8", "ISO-8859-1", NULL, NULL, NULL);
if (!text) {
mm_obj_dbg (log_object, " text/data: ignored (latin to UTF-8 conversion error)");
} else {