Python Error please help!

Status
You're currently viewing only ComradeXavier's posts. Click here to go back to viewing the entire thread.
Not open for further replies.

ComradeXavier

Ars Scholae Palatinae
882
Subscriptor++
The problem isn't Python or Mac-specific. It's a question of text encoding.

When you open the input file, you specify that the encoding is UTF8. Therefore it's possible for the values you read to contain Unicode code points.

You don't specify the encoding you want to use for the output file. Apparently, the default is ASCII.

Because Unicode code points are a superset of ASCII, it is possible that your program will read some text that it can't write, and that is what the error indicates.
 
Status
You're currently viewing only ComradeXavier's posts. Click here to go back to viewing the entire thread.
Not open for further replies.