Skip to content

fix string length being in utf-16#59

Merged
ThexXTURBOXx merged 1 commit intoThexXTURBOXx:mainfrom
wagyourtail:main
Mar 9, 2025
Merged

fix string length being in utf-16#59
ThexXTURBOXx merged 1 commit intoThexXTURBOXx:mainfrom
wagyourtail:main

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