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

Fixed to do force_encoding when decoding JSON. #736

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

masato-hi
Copy link

@masato-hi masato-hi commented Mar 24, 2025

What I did.

Encode variables to UTF-8 when decoding JSON.
Ruby's ENV variable is ASCII-8BIT, so force_encoding is required when accepting values passed via ENV.

What I didn't do.

Unicode Escape when encoding.
I didn't do this because the decoding process only supports Unicode up to 4 bytes.

Related.

#735

1ed51d0#diff-c105c6f17eabaabdafb33fb6b9dccbaaf06e70daba153d42e3e72741a7ff6eccL16

@masato-hi masato-hi force-pushed the fix-utf8-json-decode branch from 8676beb to b545688 Compare March 24, 2025 07:09
@masato-hi masato-hi force-pushed the fix-utf8-json-decode branch from b545688 to 1f225fc Compare March 25, 2025 02:26
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.

1 participant