Probabilistic-Matrix-Factorization icon indicating copy to clipboard operation
Probabilistic-Matrix-Factorization copied to clipboard

No encoding declared

Open zafrankhan opened this issue 7 years ago • 3 comments

When i run the code.it gives me this error SyntaxError: No ASCII character '\xe6' in file LoadData.py on line 12, but no encoding declared

What can be the possible solution of this issue

zafrankhan avatar May 24 '18 10:05 zafrankhan

What‘s your python version? Maybe python3 doesn't have encoding problem

fuhailin avatar May 24 '18 10:05 fuhailin

Respected sir, i am using python 2.7. sir if ill change the version of python then i have to change all other settings as well. sir is there any way to remove this error?

zafrankhan avatar May 24 '18 10:05 zafrankhan

Sorry, this error caused by my Chinese comments.Try to add "# -- coding: utf-8 --" at the header of those files or just remove those chinese comments

fuhailin avatar May 24 '18 11:05 fuhailin