It looks like the built in Laserfiche encoding in Workflow seems to use Unicode. Is there an easy way to encode my token as GSM?
We want to use this token for a SMS message and GSM is a lot better to use for that.
It looks like the built in Laserfiche encoding in Workflow seems to use Unicode. Is there an easy way to encode my token as GSM?
We want to use this token for a SMS message and GSM is a lot better to use for that.
Hi Dylan,
Not out of the box. Microsoft .NET does not have a GSM encoding function in its standard library.
Some SMS services such a Twilio appear to handle GSM encoding automatically.
See: Twilio GSM-7 and Smart Encoding
When sending SMS messages with Twilio, we'll automatically send messages in the most compact encoding possible. If you include any non GSM-7 characters in your message body, we will automatically fall back to UCS-2 encoding (which will limit message bodies to 70 characters each).
If the SMS service you're using doesn't perform automatic encoding, you can use a Workflow Script activity to run one of the many community C# GSM7 encoding implementations on your message string. Here are two we found with a quick Google search:
If you're using Laserfiche Cloud, you can use a Script Rule with a Remote Agent to run the GSM encoding function.