Skip to content

Fix unicode processing#1

Merged
codeofdusk merged 2 commits intocodeofdusk:masterfrom
Danstiv:Fix-unicode-processing
May 8, 2024
Merged

Fix unicode processing#1
codeofdusk merged 2 commits intocodeofdusk:masterfrom
Danstiv:Fix-unicode-processing

Conversation

@Danstiv
Copy link
Copy Markdown
Contributor

@Danstiv Danstiv commented Feb 9, 2024

Now, instead of processing strings, we work with bytes, which does not lead to an exception when processing some unicode characters, such as emoji.

Also, now there is no decoding from utf-8 and vice versa, which can potentially increase performance.

The application code has been moved to a function, so it is easier to debug and this is a more pythonic way.

Now, instead of processing strings, we work with bytes, which does not lead to an exception when processing some unicode characters, such as emoji.

Also, now there is no decoding from utf-8 and vice versa, which can potentially increase performance.

The application code has been moved to a function, so it is easier to debug and this is a more pythonic way.
@Danstiv
Copy link
Copy Markdown
Contributor Author

Danstiv commented Feb 9, 2024

Fixes nvaccess/nvda#16027

@Danstiv
Copy link
Copy Markdown
Contributor Author

Danstiv commented Feb 12, 2024

@codeofdusk

@codeofdusk
Copy link
Copy Markdown
Owner

Changes seem okay! I'll run with this for a while on my end and merge it soon.

@codeofdusk codeofdusk merged commit 3a7e75d into codeofdusk:master May 8, 2024
@codeofdusk codeofdusk mentioned this pull request May 11, 2024
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