解决:

with open(file_path,errors='ignore') as f:
        text=f.read().splitlines()