问题:SyntaxError: Non-UTF-8 code starting with '\xb4' in file D:\java\eclipse-workspace\app\src\userLogin\login.py on line 4, but no encoding declared;
解决办法:
(1):修改:Windows——>Preferences——>workspace。(如下图所示)
(2)修改Windows——>Preferences——>General——>Content types,点击右侧Text,选择下面Python,然后在Default encoding后面输入UTF-8, 选择Apply and Close.
(3)先设置好前面两点,再将代码复制到Eclipse环境下。否则删除乱码,重新输入,再重新运行即可。