Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

encoding error #2

Open
JeffFessler opened this issue Jul 25, 2019 · 0 comments
Open

encoding error #2

JeffFessler opened this issue Jul 25, 2019 · 0 comments

Comments

@JeffFessler
Copy link

I made the .py file executable and then ran the following using Python 2.7.10 on a Mac:

./fdf2csv.py Test_Data.csv

which gave this error:

File "./fdf2csv.py", line 31 SyntaxError: Non-ASCII character '\xc3' in file ./fdf2csv.py on line 31, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details

I tried editing the line 31:
fdf_list = re.sub("(þÿ|FEFF)", "", fdf)
by replacing it with
fdf_list = re.sub("FEFF", "", fdf)
and then it ran fine on the Test_Data but for my FDF file it produced no output.
So perhaps some more changes are needed?

Thanks for providing this potentially useful utility! I hope I can use it :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant