builtins.UnicodeDecodeError: 'utf-8' codec can't decode byte 0xd2 in position 14: invalid continuation byte
I'm getting the following error that pops up not in my script but in the codecs.py file. I've used code exactly like this in another program and it worked just fine. Any ideas? Script below.
#/usr/bin/env python3
import sys
song = sys.argv[1]
file = open(song)
tag = b'artist='
for i in range(0,2):
for line in file:
if tag in line.lower():
print(tag)