-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issues/188: data_coding should not be applied to all C-Octet String f…
…ields (#190) What: - BugFix, `data_coding` should not be applied to all fields that are of type C-octet string - Have the naz messsage protocol only use `utf8` for encoding/decoding Why: - fixes: #188 - A C-Octet string, is a series of ASCII characters terminated with the NULL character. see; section 3.1 of SMPP spec Thus we need to encode any field that is a C-Octet strings as ascii and also terminate them with NULL char(chr(0).encode()) eg, ` system_id.encode("ascii") + chr(0).encode()` Also they should be decoded as such; `message_id.decode('ascii')`
- Loading branch information
Showing
11 changed files
with
106 additions
and
131 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.