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

Commit e9260aec authored by Wink Saville's avatar Wink Saville Committed by android code review
Browse files

Merge "Omitting Big Endian caused corrupt characters"

parents 7ac8d802 9f1860d5
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();