Skip to content

AttributeError: 'str' object has no attribute 'decode'. Did you mean: 'encode'? #3

@ged-flod

Description

@ged-flod

When using this exmple from README.md

from smshelper import SMSHelper
sms = SMSHelper('Sample message.')

sms.detect_encoding() # return 'GSM_7BIT'

sms.count() # return : AttributeError: 'str' object has no attribute 'decode'. Did you mean: 'encode'?

sms.parts() # return : AttributeError: 'str' object has no attribute 'decode'. Did you mean: 'encode'?

Python version 3.12.7
MacOs Sequoia version 15.0.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