diff --git a/server/notification.js b/server/notification.js index 1f13ad4..5683851 100644 --- a/server/notification.js +++ b/server/notification.js @@ -208,7 +208,8 @@ class Notification { "phone_number": notification.octopushPhoneNumber } ], - "text": msg, + //octopush not supporting non ascii char + "text": msg.replace(/[^\x00-\x7F]/g, ""), "type": notification.octopushSMSType, "purpose": "alert", "sender": notification.octopushSenderName