Skip to content

Problem with gsm0338 codec #220

@niksabaldun

Description

@niksabaldun

Hi,

If I try to send a message using gsm0338 codec:

msg = naz.protocol.SubmitSM(
    encoding='gsm0338',
    short_message='SMPPtest',
    log_id=request_id,
    source_addr='some_number',
    destination_addr='some_number',
    validity_period='221017095407208+'
)

it is not encoded correctly, the client receives garbage ('S&ΛJ/Oi' in this case). If I specify ucs2 encoding, then everything is fine.

It is not a server problem. I've tried sending from https://melroselabs.com/tools/smppclientproxy/ via the same server using gsm0338 and the message was encoded correctly.

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