Skip to content

Encode serialized output to avoid encoding errors.#44

Merged
ioquatix merged 4 commits into
mainfrom
output-encoder
Aug 3, 2023
Merged

Encode serialized output to avoid encoding errors.#44
ioquatix merged 4 commits into
mainfrom
output-encoder

Conversation

@ioquatix
Copy link
Copy Markdown
Member

@ioquatix ioquatix commented Aug 3, 2023

Introduce Console::Output::Encoder which can wrap serialized output to avoid encoding errors.

JSON::GeneratorError: source sequence is illegal/malformed utf-8
/usr/local/lib/ruby/3.2.0/json/common.rb:312:in `generate': source sequence is illegal/malformed utf-8 (JSON::GeneratorError)
	from /usr/local/lib/ruby/3.2.0/json/common.rb:312:in `generate'
	from /usr/local/lib/ruby/3.2.0/json/common.rb:641:in `dump'
	from /srv/vendor/bundle/ruby/3.2.0/gems/console-1.18.0/lib/console/serialized/logger.rb:33:in `dump'

Types of Changes

  • Bug fix.
  • New feature.

Contribution

@ioquatix ioquatix merged commit af79b3a into main Aug 3, 2023
@ioquatix ioquatix deleted the output-encoder branch August 3, 2023 02:32
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