Skip to content
This repository was archived by the owner on Sep 19, 2024. It is now read-only.

Conversation

heidi
Copy link
Contributor

@heidi heidi commented Jul 24, 2017

Parse the JSON string and return a Hash with symbol keys
for ease of use by Griddler when encoding strings later on.

We are currently running into an issue where we receive bodies
containing non-UTF8 characters. We want to convert them to UTF8
using String#encode, but without knowing the source encoding, we
cannot do this correctly. This surfaces the encodings that were
pulled out by SendGrid so that we can access them from the
Griddler Email.

Parse the JSON string and return a Hash with symbol keys
for ease of use by Griddler later on. This is useful for encoding
strings properly.

We are currently running into an issue where we receive text bodies
containing non-UTF8 characters. We want to convert them to UTF8
using String#encode, but without knowing the source encoding, we
cannot do this correctly. This surfaces the encodings that were
pulled out by SendGrid so that we can access them from the
Griddler Email.
@heidi heidi changed the title `Expose charsets as Hash in normalized params Expose charsets as Hash in normalized params Jul 24, 2017
@sdhull
Copy link
Collaborator

sdhull commented May 1, 2018

@heidi sorry for late review, I haven't been using this gem recently. Is this PR dependent on merging thoughtbot/griddler#292 ?

@heidi
Copy link
Contributor Author

heidi commented May 1, 2018

It can be merged independently, but won't be very useful until the PR you reference is also merged.

@wingrunr21
Copy link
Collaborator

That PR just got merged. I'll have to cut a new release later tonight though. I'll merge this PR as well and release it with v1.1.0

@sdhull
Copy link
Collaborator

sdhull commented May 2, 2018

Woot! Thanks for the help @heidi this is good 👍

@wingrunr21 wingrunr21 merged commit 57801d1 into thoughtbot:master May 9, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants