nanch / phpfmt_stable

This is a stable snapshot (version 6125cf9) of the phpfmt plugin for Sublime Text
143 stars 34 forks source link

Windows 10 username chinaese problem. #53

Open liuzhioic opened 6 years ago

liuzhioic commented 6 years ago

Hello

problem in file phpfmt.py line 511 ret += ("phpfmt (fmt.phar version):\n"+res.decode('utf-8'))

My path was at that time. 'C:\Users\刘智\AppData\Roaming\Sublime Text 3\Packages\phpfmt\fmt.phar 19.6.4' res content at that time. b'C:\Users\\xc1\xf5\xd6\xc7\AppData\Roaming\Sublime Text 3\Packages\phpfmt\fmt.phar 19.6.4\r\n' so that problem is happend at now. UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc1 in position 9: invalid start byte