[REQUEST]: Investigate utf8 issues with output: "Unknown code"
See original GitHub issueIs your feature request related to a problem? Please describe
https://twitter.com/Cor3ntin/status/1502357281186402310?s=20&t=L1CnMe8pwqgIUOVetbIncA
https://godbolt.org/z/E6bbshGvv
getting bad unicode things in the output:
<source>:1:9: error: macro name must be an identifier
#define Unknown code<U+1F984> &
^
<source>:2:5: error: unexpected character <U+1F984>
int Unknown code<U+1F984>;
^~~~~~~~~
<source>:2:1: warning: declaration does not declare anything [-Wmissing-declarations]
int Unknown code<U+1F984>;
Describe the solution you’d like
Unsure, but it seems confusing.
Describe alternatives you’ve considered
na
Additional context
Not applicable
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (7 by maintainers)
Top Results From Across the Web
"Special" characters encoding issues with write_* and read_* ...
The problem with format_csv seems to be that the output is "UTF-8" encoded, but that R does not know about it. I.e. it...
Read more >Encoding UTF8 C# Process - Stack Overflow
Run the code and manually examine the output. All those that match the expected text are candidates for being the encoding used in...
Read more >Troubleshooting Encoding Errors in Ruby - Honeybadger.io
So, you investigate the problem, discover that it's an encoding error, and see some odd characters, such as " " in the error...
Read more >How to solve unicode encoding issues - Invivoo
In ths new article, our expert will explain you how to solve unicode encoding issues. If you have any question, don't hesite to...
Read more >Use UTF-8 (Unicode) charset encoding for pages and email ...
I split the two areas mail and html output. This only contains the changes needed for HTML and tries to addess all issues...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I don’t think we can “actually” implement that (other than just assuming it’s black/white), perhaps we should just add
} else if (code === 7) { return '';
here https://github.com/compiler-explorer/compiler-explorer/blob/main/static/ansi-to-html.ts#L170I think that would make a lot of sense!