Open dscp46 opened 6 months ago
Hi Do you know how to send an SMS coded with ucs-2?
Sorry, I wasn't clear enough with my initial idea: The feature request focuses on appropriately decoding SMSes when their payload is UCS-2 encoded. Sending is less of an issue, unless your consider international usage.
Hi Do you know how to send an SMS coded with ucs-2?
Maybe it is better to save the raw messages with "/usr/bin/uqmi_d.sh". So you could decide what to do with ucs-2 content in e.g. "/usr/bin/uqmi_sms.sh" and you don't lose all messages.
@dscp46 solution will help languages with fewer special characters, but how to deal with Greek or Chinese?
Hi,
When UCS-2 encoded SMS are received, the
text
variable is empty, and replaced byucs-2
in the json payload.Here is a sample message extracted with the
uqmi -s -d $device --get-message $messageID --storage $storage
command (sensitive data redacted):As a custom fix, I've added the following lines between
fi
andecho "$sender" > $receiveFolder/$sms_file
in/usr/bin/uqmi_d.sh
:It's a quick and ugly fix as it depends on
xxd
, which is not part of your dependencies, and the charset conversion is not done in a proper way.Kind regards,