summaryrefslogtreecommitdiffstats
path: root/plugins/zte.c
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2012-01-11 06:37:05 -0600
committerDenis Kenzior <denkenz@gmail.com>2012-01-11 06:38:28 -0600
commit89c757f49d6aa3f8345bb6e0f1ab38b99a520ccd (patch)
tree27045ef958320c75204a58b7a8b6a944916ad83d /plugins/zte.c
parent845deec5541af6bf58e40a7eeed8ad0b67bccc31 (diff)
downloadofono-89c757f49d6aa3f8345bb6e0f1ab38b99a520ccd.tar.bz2
zte: Setup CSCS on both ports
Diffstat (limited to 'plugins/zte.c')
-rw-r--r--plugins/zte.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/plugins/zte.c b/plugins/zte.c
index e5511a0b..9a1b9e97 100644
--- a/plugins/zte.c
+++ b/plugins/zte.c
@@ -167,6 +167,16 @@ static void zoprt_enable(gboolean ok, GAtResult *result, gpointer user_data)
g_at_chat_send(data->modem, "AT&C0", NULL, NULL, NULL, NULL);
g_at_chat_send(data->aux, "AT&C0", NULL, NULL, NULL, NULL);
+ /*
+ * Ensure that the modem is using GSM character set and not IRA,
+ * otherwise weirdness with umlauts and other non-ASCII characters
+ * can result
+ */
+ g_at_chat_send(data->modem, "AT+CSCS=\"GSM\"", none_prefix,
+ NULL, NULL, NULL);
+ g_at_chat_send(data->aux, "AT+CSCS=\"GSM\"", none_prefix,
+ NULL, NULL, NULL);
+
/* Read PCB information */
g_at_chat_send(data->aux, "AT+ZPCB?", none_prefix, NULL, NULL, NULL);