Skip to content

Support for non-Latin characters and Emojis #2

@valaz

Description

@valaz

The Problem: Currently, non-Latin characters and Emojis arrive as garbled text or ????. This happens because the gateway defaults to GSM-7 encoding instead of Unicode (UCS-2).

The Solution: Setting "Unicode": True in the smsinfo dictionary within run.py fixes this. I have manually verified that forcing this flag allows all non-Latin symbols and Emojis to be delivered correctly.

smsinfo = {
    "Class": -1,
    "Unicode": True, # args.get('unicode') if args.get('unicode') else False,
    "Entries": [
        {
            "ID": "ConcatenatedTextLong",
            "Buffer": args['text'],
        }
    ],
}

The Request: Could you add a configuration option to the Home Assistant integration to enable Unicode support?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions