On 9/20/2017 6:40 PM, Dennis Lee Bieber wrote:
On Wed, 20 Sep 2017 17:13:41 -0500, john polo <jp...@mail.usf.edu>
declaimed the following:
and the example code for reading the file is:
file = open('books.json','r')
What encoding is the file? I did a cut&paste from your post into a
file, and the contents (Python 2.7) failed with
Dennis,
I typed it into notepad++ and saved as .json. On the bottom of the
notepad++ window it says:
Windows (CR LF) UTF-8
I think that answers your question?
Thanks,
John
--
"Ask a man to be quiet,
and he'll be silent for a moment.
Feed a man to a red dragon
and he'll be silent for a lifetime."
-Anne Isabella Thackeray Ritchie
--
https://mail.python.org/mailman/listinfo/python-list