I'm writing a program and it gets giving ascii error. I've already put this on the first line and nothing:
# -*- coding: utf-8 -*-
On request, it follows edition explaining what is now.
now it is variable for datetime and I believe it has no relation.
The accent on the console (terminal) is normal. What does not work is because I put it to write in a .txt file and when put to write with accent it appears that error.
I did what mgibsonbr asked and gave it all ok. I use OS X.
So, recapping:
- now is a variable for datetime that has nothing with accentuation (I believe);
- The accent error only appears when writing to a .txt file;