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

Commit 533f93bd authored by Emilio López's avatar Emilio López
Browse files

Support Korean SMS encoding

Korean users on KT weren't able to send and receive text messages because
their carrier uses a non-standard encoding on them. This patch checks if the
current SIM inserted is from a Korean carrier when automatic decoding
fails, and supplies the correct encoding in that case.

Change-Id: I1ab858faaa853016697349848bd4f0a413c57adc
parent 1d4860a9
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -1027,7 +1027,12 @@ public class SmsMessage extends SmsMessageBase{
                case 3: // reserved
                    Log.w(LOG_TAG, "1 - Unsupported SMS data coding scheme "
                            + (dataCodingScheme & 0xff));
                    if (SimRegionCache.getRegion() == SimRegionCache.MCC_KOREAN) {
                        Log.w(LOG_TAG, "Korean SIM, using KSC5601 for decoding.");
                        encodingType = ENCODING_KSC5601;
                    } else {
                        encodingType = ENCODING_8BIT;
                    }
                    break;
                }
            }