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 encoding issues for utf-16 #3

Merged
merged 5 commits into from
Jun 15, 2024
Merged

Fix encoding issues for utf-16 #3

merged 5 commits into from
Jun 15, 2024

Conversation

steciuk
Copy link

@steciuk steciuk commented Jun 14, 2024

I was happily using your lib (thanks!), but run into some issues with subs encoding. After some tests, it looked like it usually has problems with utf-16.

  • I quickly duct-taped a solution (cbba6a8),
  • and added chardet auto encoding detection just to be sure (4b5009e).

I've never used Poetry or published a python package, so I would be glad If you could properly complete this PR and hopefully update napi-py <3.

@emkor
Copy link
Owner

emkor commented Jun 15, 2024

Thanks for activity on the project and fixing the issue, will review sometime next week as I'm pretty busy right now

@steciuk
Copy link
Author

steciuk commented Jun 15, 2024

Sure!
I've decided to watch some Poetry 101 on YT and updated the deps to make it easier on you. When you have some time to review, please let me know if there is anything else that should be done.

Copy link
Owner

@emkor emkor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good

@emkor emkor merged commit 3632fea into emkor:master Jun 15, 2024
@emkor
Copy link
Owner

emkor commented Jun 15, 2024

Newest version has been released to pypi https://pypi.org/project/napi-py/1.2.3/
thanks for contributing

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