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.

UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc3 in position 0: invalid continuation byte

See original GitHub issue

I do not know much about character encoding, and that’s perhaps why I can’t give out much details, but typing the characters ˆø several times in continuation exits the program with the following error-

Super sorry, something went very wrong.
Please create a New Issue and paste this info there.

Traceback (most recent call last):
  File "/opt/ci_edit/app/ci_program.py", line 524, in wrapped_ci
    prg.run()
  File "/opt/ci_edit/app/ci_program.py", line 461, in run
    self.commandLoop()
  File "/opt/ci_edit/app/ci_program.py", line 245, in commandLoop
    u = bytes_to_unicode((ch, b))
  File "/opt/ci_edit/app/ci_program.py", line 29, in bytes_to_unicode
    return bytes(values).decode("utf-8")
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc3 in position 0: invalid continuation byte

System details-

Screenshot 2019-07-10 at 4 03 04 PM

Terminal details-

Screenshot 2019-07-10 at 4 03 50 PM

Also, is this error, in any way, related to #133?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
dschuylercommented, Jul 12, 2019

Thanks again,

I know that filing a bug takes some time/effort. This was an issue I didn’t know about and was it is important to address it. If something fails in the future, please feel welcome to let me know.

A fix has been submitted. Please try again without --singleThread.

1reaction
dschuylercommented, Jul 11, 2019

^ did not mean holding the control key. I type the ^ character by holding the (option/alt) key together with i key. I type the ø character by holding the (option/alt) key together with o key.

Thanks! That was the piece I was missing. I can see the crash now, I’ve started on a fix.

As a temporary workaround, you cold pass --singleThread to we. E.g. we --singleThread <some_file>. That will make ci_edit not as quick (using multiple threads makes ci_edit snappier). I hope to have a fix soon.

Read more comments on GitHub >

github_iconTop Results From Across the Web

UnicodeDecodeError, invalid continuation byte - Stack Overflow
Then the error is displaying like this :- UnicodeDecodeError: 'utf-8' codec can't decode byte 0xf4 in position 1: invalid continuation byte.
Read more >
UnicodeDecodeError: 'utf-8' codec can't decode byte in position
The Python "UnicodeDecodeError: 'utf-8' codec can't decode byte in position: invalid continuation byte" occurs when we specify an incorrect encoding when ...
Read more >
UnicodeDecodeError: 'utf-8' codec can't decode byte [...] in ...
In this blog post, we're solving UnicodeDecodeError: 'utf-8' codec can't decode byte […] in position […]: invalid continuation byte. Important, ...
Read more >
`UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe9 in ...
Encoding error : UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe9 in position 2: invalid continuation byte #976.
Read more >
How to resolve a UnicodeDecodeError for a CSV file - Kaggle
_string_box_utf8() UnicodeDecodeError: 'utf-8' codec can't decode byte 0xcc in position 1: invalid continuation byte During handling of the above exception, ...
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