Skip to content

Receiving SMS in Russian #38

@therealrollexx

Description

@therealrollexx

Hi. I'm trying to get an sms

import huaweisms.api.user
import huaweisms.api.sms
ctx = huaweisms.api.user.quick_login("admin", "password")
print(ctx)
smss = huaweisms.api.sms.get_sms(ctx, box_type=1, qty=1, unread_preferred=True)
print(smss)

The SMS comes and I see unknown characters in the "Content" field

<ApiCtx modem_host=192.168.8.1> {'type': 'response', 'response': {'Count': '1', 'Messages': {'Message': [{'Smstat': '0', 'Index': '40021', 'Phone': '+79992314505', 'Content': 'Ð\x9fÑ\x80ивеÑ\x82', 'Date': '2022-03-11 14:18:04', 'Sca': '', 'SaveType': '0', 'Priority': '0', 'SmsType': '1'}]}}}

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