torchxrayvision icon indicating copy to clipboard operation
torchxrayvision copied to clipboard

datasets.py SyntaxError: Non-ASCII character '\xe2' in file

Open josephdviviano opened this issue 2 years ago • 1 comments

Looks like we have some weird dashes - showing up in the code that fails on some platforms.

josephdviviano avatar Sep 29 '21 22:09 josephdviviano

I had made this edit to the top of datasets.py but I think I didn't check it in because I didn't know if it was the best solution:

#!/usr/bin/python
# -*- coding: utf-8 -*-

It is probably better to encode those characters and then decode them for maximum compatibility?

ieee8023 avatar Sep 29 '21 23:09 ieee8023