elicwhite / ESLint-Formatter

Sublime Text 3 Plugin to Autoformat with Eslint
MIT License
139 stars 20 forks source link

'utf-8' codec can't decode byte 0xb2 in position 28: invalid start byte #32

Open ihaichao opened 7 years ago

ihaichao commented 7 years ago

qq 20161202112020

when I use ESLint-Formatter on windows10, it pops up a window as the picture above says.

elicwhite commented 7 years ago

Hmm. Weird. What happens if you call eslint --fix YOUR_FILE_PATH from the cli?

ihaichao commented 7 years ago

it shows the error infomation of the file.

5b90 xy u zu ixm3 y t

elicwhite commented 7 years ago

I'm not sure, it sounds like it is likely something python is doing with file encodings. Feel free to open a PR if you are able to figure it out on your machine.

ihaichao commented 7 years ago

OK, I will try my best to figure it out.

dhomo commented 7 years ago

i have same error. windows10 sublime 3126

default

ysbcc commented 5 years ago

is there an solution to this problem?