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 string length being in utf-16 #59

Merged
merged 1 commit into from
Mar 9, 2025

Conversation

wagyourtail
Copy link

the length of the string was encoded in utf-16, but the string was encoded in utf8, so if there were any codes outside of ascii, the length wouldn't match the byte length.

this fixes that by actually using the length of the byte array.

@ThexXTURBOXx ThexXTURBOXx merged commit e6a2ed0 into ThexXTURBOXx:main Mar 9, 2025
1 check passed
@ThexXTURBOXx
Copy link
Owner

Thank you very much for your contribution! :)

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.

2 participants