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

Unescape characters for string output type in the contract response #4453

Merged
merged 1 commit into from
Jul 29, 2021

Conversation

vbaranov
Copy link
Member

@vbaranov vbaranov commented Jul 28, 2021

Closes #4445

Motivation

Escaping of \x blocks decoding of UTF-8 encoded string in contract string type output.

Changelog

Add unescape function taken from https://elixirforum.com/t/how-to-properly-convert-this-octal-encoded-utf16-be-string-to-utf8/33220/11 and implement it in the case of string output type.

Checklist for your Pull Request (PR)

@vbaranov vbaranov merged commit 1a7af4f into master Jul 29, 2021
@vbaranov vbaranov deleted the vb-unescape-string branch July 29, 2021 12:01
sidhujag pushed a commit to syscoin/blockscout that referenced this pull request Jul 29, 2021
Unescape characters for string output type in the contract response
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.

Add decoding of UTF-8 encoded in contract method string type output
1 participant