question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[REQUEST]: Investigate utf8 issues with output: "Unknown code"

See original GitHub issue

Is 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:closed
  • Created 2 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
partoufcommented, Mar 11, 2022

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#L170

0reactions
cor3ntincommented, Mar 11, 2022

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#L170

I think that would make a lot of sense!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found