python script Non-ASCII character

Xristos Xristoou saxri89 at
Sun Mar 19 13:38:09 EDT 2017

hello i have create a python script when read some files using paths and do something with that files.
if that paths for files is in english likes this "c:/my_path/english " then python script  working but if that paths is in my main language or the path have some blank character then not working and i take that error :

SyntaxError: Non-ASCII character '\xce' in file on line 15, but no encoding declared; 

can i fix that in python 2.7.13 ? can i find some solution to python read paths in my main language or paths with blanks?

More information about the Python-list mailing list