Skip to content

Log when non-compatible characters are replaced in text messages#4879

Merged
quis merged 1 commit into
mainfrom
log-non-compatible-chars-sms
Jun 12, 2026
Merged

Log when non-compatible characters are replaced in text messages#4879
quis merged 1 commit into
mainfrom
log-non-compatible-chars-sms

Conversation

@quis

@quis quis commented Jun 12, 2026

Copy link
Copy Markdown
Member

We want to know the risk of allowing all unicode characters in text messages.

Existing templates won’t contain non-compatible characters because we validate them out.

Personalisation can contain non-compatible characters but we replace each with a ? at the time of sending. We want to know how often this is happening, because our change would result in these characters not being encoded, but the message costing more.

@quis quis force-pushed the log-non-compatible-chars-sms branch from 5d69439 to 0094de4 Compare June 12, 2026 12:00
We want to know the risk of allowing all unicode characters in text
messages.

Existing templates won’t contain non-compatible characters because we
validate them out.

Personalisation can contain non-compatible characters but we replace
each with a ? at the time of sending. We want to know how often this is
happening, because our change would result in these characters not
being encoded, but the message costing more.

We don’t want to log the characters directly because that would mean
putting personal data – if only a few characters — into our logs. So
we log a count instead.
@quis quis force-pushed the log-non-compatible-chars-sms branch from 0094de4 to d2914af Compare June 12, 2026 12:28
@quis quis merged commit b0e5434 into main Jun 12, 2026
10 checks passed
@quis quis deleted the log-non-compatible-chars-sms branch June 12, 2026 13:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants