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

Add explicit UTF8 TextEncoding to Streams to fix filters with special characters #45

Merged
merged 1 commit into from
Mar 6, 2025

Conversation

ThaSiouL
Copy link
Contributor

@ThaSiouL ThaSiouL commented Mar 5, 2025

I noticed an issue yesterday where filters with a special character (Ü in a Code field in a German SaaS Environment to be specific) would cause the data editor to not find any records. Substituting the umlaut character with a * got the expected result.

Adding explicit UTF8 TextEncoding to CreateInstream and CreateOutstream fixes this issue on my sandbox system.
I don't think this change has any unwanted sideeffects. UTF16 might be better for some asian languages but UTF8 should still work for them.

@Drakonian Drakonian self-requested a review March 5, 2025 19:38
@Drakonian
Copy link
Owner

@ThaSiouL

Thanks for your PR!

I will test and will merge if everything is ok.

About UTF-16, I think it's not the right encoding. Since I'm not sure about backward compatibility with ASCII. (utf-16 is 2 bytes per character)

@Drakonian Drakonian self-assigned this Mar 6, 2025
Copy link
Owner

@Drakonian Drakonian left a comment

Choose a reason for hiding this comment

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

Everything is perfect

@Drakonian Drakonian merged commit 1af700d into Drakonian:master Mar 6, 2025
4 checks passed
@Drakonian
Copy link
Owner

@ThaSiouL
Thank you again.
I also added a test to avoid similar situations in the future #47

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