Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix support for charset Shift_JIS #3

Merged
merged 10 commits into from
Aug 15, 2021
Merged

Fix support for charset Shift_JIS #3

merged 10 commits into from
Aug 15, 2021

Conversation

hopskipnfall
Copy link
Owner

There was an assumption in the original code that 1 character is 1 byte. This is not true for Shift_JIS where some characters are 2 bytes. This PR changes how message length is calculated by looking at bytes in the charset specified in the config.

@hopskipnfall hopskipnfall merged commit 3db728b into master Aug 15, 2021
@hopskipnfall hopskipnfall deleted the shift_jis branch August 15, 2021 16:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant