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

Support UTF-8 encoding #213

Merged
merged 1 commit into from
Dec 21, 2022
Merged

Support UTF-8 encoding #213

merged 1 commit into from
Dec 21, 2022

Conversation

LossyDragon
Copy link
Collaborator

@LossyDragon LossyDragon commented Dec 20, 2022

Description

Getting app info from PICSProductInfo may contain symbols or foreign letters that were not being rendered correctly, either garbled text or question marks.

We have to do a little converting getting the buffer from PICSProductInfo as UTF-8, but parsing it to KeyValues would break it again.

KeyValues now stores parsed tokens into a ByteArrayOutputStream, once it's finished parsing the bytes, we convert it to a UTF-8 supported string.

This brings back nearly all symbols and foreign letters, though there are a some characters still showing question marks.

Checklist

  • Code compiles correctly
  • All tests passing
  • Samples run successfully
  • Extended the README / documentation, if necessary

@LossyDragon LossyDragon merged commit f131c4f into Longi94:master Dec 21, 2022
@LossyDragon LossyDragon deleted the utf branch December 21, 2022 06:42
@LossyDragon LossyDragon mentioned this pull request Jan 28, 2023
4 tasks
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.

None yet

1 participant