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

[SQL-157] Encoding fix #260

Merged
merged 13 commits into from
Dec 12, 2022
Merged

[SQL-157] Encoding fix #260

merged 13 commits into from
Dec 12, 2022

Conversation

kelvinqian00
Copy link
Collaborator

@kelvinqian00 kelvinqian00 commented Dec 8, 2022

Add/modify util functions that encode or decode strings such that the charset is always fixed to UTF-8, and replace all instances of String constructor calls to use said util functions. Also add tests on Unicode characters.

TODO: However, these fixes are not enough to address the issues causing the SQL-157 Out of Memory Error bug caused by incorrect encoding. This will have to wait until the lrs library can be updated.

Turns out updating the lrs lib is impractical due to the default charset being used deep within Pedestal (see here). Thus we instead set the default encoding using Java variables in our shell scripts and executable configs.

@kelvinqian00 kelvinqian00 requested a review from milt December 8, 2022 21:31
@milt
Copy link
Member

milt commented Dec 8, 2022

@kelvinqian00
Copy link
Collaborator Author

@kelvinqian00 kelvinqian00 marked this pull request as ready for review December 9, 2022 21:48
@kelvinqian00 kelvinqian00 merged commit 9e668b0 into main Dec 12, 2022
@kelvinqian00 kelvinqian00 deleted the encoding-fix branch December 12, 2022 21:44
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