I'm trying to execute a script on a schedule it's coded in utf-8 at the beginning of the file:
#-*- coding: utf-8 -*- .
I've set Task Scheduler in windows to run a batch file that calls the py file for execution.
python C:/Users/admin_4190248/Desktop/Howard/redshift_howard.py
However, when the script runs in either CMD or PowerShell, it throws a "can't encode error" like this:
UnicodeDecodeError: 'ascii' codec can't encode character u'\u2013'...
Which I don't understand, since the file executes fine in an ipython console.
My question is therefore, is there another (more ipython like) tool that I can use to execute my script on a schedule? Or, can you help to solve this UTF-8 issue within CMD?