SMS messages sent via Salesforce Digital Engagement may fail if Unicode characters (such as emojis or special symbols) are used, as this reduces the maximum allowed message length. This article explains how character encoding affects SMS length limits and provides the recommended workaround to avoid Unicode characters in messaging templates to ensure successful delivery.
When attempting to send an SMS, users may encounter the following error message:
"Can't send this message because the message body is too large."
This error indicates that the message has exceeded the platform's maximum character or segment limit. While the standard limit for an SMS Long Code channel is 912 characters, the actual limit is determined by the encoding type used for the message.
SMS messages are sent in "segments." The number of characters allowed per segment depends on the characters included in your message:
GSM-7 Encoding (Standard Text): * Used for standard Latin letters, numbers, and basic punctuation.
Segment Capacity: 152 characters.
Maximum Limit: 912 characters (6 segments × 152 characters).
Unicode Encoding (Emojis & Special Characters): * If a message contains even one non-GSM character—such as an emoji, a special symbol, or a "curly" quotation mark (’)—the entire message is converted to Unicode.
Segment Capacity: 66 characters.
Maximum Limit: 396 characters (6 segments × 66 characters).
Consider a message that contains 638 total characters.
Scenario A (Failure): The message includes a curly apostrophe (e.g., "We’re"). Because this is a Unicode character, the message requires approximately 10 segments. Since the platform limit is 6 segments, the message fails with the "Body Too Large" error.
Scenario B (Success): The same message is edited to use a standard straight apostrophe (e.g., "We're"). The message now uses GSM encoding, requires only 5 segments, and sends successfully.
To ensure successful delivery, we recommend the following:
Avoid Special Characters: Be cautious when copying text from word processors (like Microsoft Word), as they often auto-format "straight" quotes into "curly" quotes.
Limit Emojis: Adding an emoji will immediately reduce your total character limit from 912 to 396.
Use a Segment Calculator: Before finalizing a template, test your text using an external segment calculator to see how it will be encoded: https://twiliodeved.github.io/message-segment-calculator/
For more detailed information on messaging limitations and international regulations, please refer to the following resources:
Salesforce Help: SMS Messaging Limitations https://help.salesforce.com/s/articleview?id=service.livemessage_limitations.htm&type=5
Digital Engagement SMS Messaging Reference: Messaging Regulations by Country https://help.salesforce.com/s/articleView?id=000380712&type=1
005299176

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.