Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9f1860d5 authored by Pierre Fröjd's avatar Pierre Fröjd Committed by Johan Redestig
Browse files

Omitting Big Endian caused corrupt characters

When sending a terminal reponse to SIM containing unicode
characters, big endian must be explicitly stated to
avoid corrupt characters.

Change-Id: Iac4dcadfd860b5de15ad2a65c4ccdf3fae9292d4
parent 5b7a88ea
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -111,8 +111,11 @@ class GetInkeyInputResponseData extends ResponseData {
            data[0] = mYesNoResponse ? GET_INKEY_YES : GET_INKEY_NO;
        } else if (mInData != null && mInData.length() > 0) {
            try {
                // ETSI TS 102 223 8.15, should use the same format as in SMS messages
                // on the network.
                if (mIsUcs2) {
                    data = mInData.getBytes("UTF-16");
                    // ucs2 is by definition big endian.
                    data = mInData.getBytes("UTF-16BE");
                } else if (mIsPacked) {
                    int size = mInData.length();