Encoding::UndefinedConversionError: "\x89" from ASCII-8BIT to UTF-8
Steps to reproduce
- Clone the wiki repository locally
- Copy a PNG file to the local repository and rename it to
this_is_a_png.md
- Commit and push
- View the new page
Sentry details
https://sentry.gitlab.net/gitlab/gitlabcom/issues/1637294/?referrer=gitlab_plugin
Encoding::UndefinedConversionError: "\x89" from ASCII-8BIT to UTF-8
commonmarker.rb:41:in `encode'
text = text.encode('UTF-8')
commonmarker.rb:41:in `render_doc'
text = text.encode('UTF-8')
banzai/filter/markdown_engines/common_mark.rb:47:in `render'
doc = CommonMarker.render_doc(text, PARSE_OPTIONS, EXTENSIONS)
banzai/filter/markdown_filter.rb:14:in `call'
@renderer.render(@text).rstrip
html/pipeline/filter.rb:129:in `call'
new(doc, context, result).call
...
(208 additional frame(s) were not displayed)
Encoding::UndefinedConversionError: "\x89" from ASCII-8BIT to UTF-8