Resolve "Error 500 due to encoding issues when when attempting to access issues API"
requested to merge 51271-error-500-due-to-encoding-issues-when-when-attempting-to-access-issues-api into master
What does this MR do?
Parsing/outputting a language specifier with a unicode character could cause the 500 error. For example, using
```日
some code
```
would cause the problem. Since the output stream used by the commonmarker
renderer already forces the stream to utf8 (https://github.com/gjtorikian/commonmarker/blob/a922188df5f08851ed096f89359fbfa53fedb4aa/lib/commonmarker/renderer.rb#L9), use the out
function to output the language specifier.
In addition, we also output the sourcepos
(which only outputs anything when the SOURCEPOS
option is used) like the commonmarker
renderer does.
What are the relevant issue numbers?
Closes #51271 (closed)
Does this MR meet the acceptance criteria?
-
Changelog entry added, if necessary -
Documentation created/updated -
Tests added for this feature/bug -
Conforms to the code review guidelines -
Conforms to the merge request performance guidelines -
Conforms to the style guides -
Conforms to the database guides
Edited by Brett Walker