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
This commit is contained in:
@@ -874,7 +874,7 @@ read_bearer_data_user_data (MMSmsPart *sms_part,
|
|||||||
}
|
}
|
||||||
latin[i] = '\0';
|
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) {
|
if (!text) {
|
||||||
mm_obj_dbg (log_object, " text/data: ignored (latin to UTF-8 conversion error)");
|
mm_obj_dbg (log_object, " text/data: ignored (latin to UTF-8 conversion error)");
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user