- Published on
How to solve UnicodeDecodeError on Windows 10
UnicodeDecodeError: 'ascii' codec can't decode byte 0xb0 in position 1: ordinal not in range(128)
This error shows to me when I'm trying to build electron from source. These steps show you how to solve it:
- Open cmd.exe
- git clone https://github.com/electron/electron.git
- cd electron && python script\bootscript.py -v
Error occurs
- Open powershell.exe
- python script\bootscript.py -v
Error occurs
- open ubuntu in powershell
- cd /mnt/d/electron
- python script\bootscript.py -v
OK
I find this post on stackoverflow. Its tl;dr reply shows the details and the reason why you come across with this error on Windows.
And this is settings on my Windows: