Registered Member
|
I just started doing Python, and I wrote a quick script in Kate, but when I saved it, it said:
It inserts an encoding line for me, but I'd rather stick to ASCII. I checked the Kate Settings under Open/Save, and I can't find ASCII in the list. I really don't know very much about character encoding. Does ASCII have some alternate name that Kate uses? |
Registered Member
|
You can't save a file as ASCII when you have non-ASCII characters in your file.
If you are so sure you really don't have any non-ASCII characters, iso-8859-1 or utf-8 are all compatible with ASCII and you can feel safe to remove the encoding line. BTW: afaik Python 3.0 defaults utf-8, not ASCII, so choosing utf-8 is a good idea in the long run. |
Registered Member
|
It does that even when the file is blank. Apparently, it won't give me the error anymore, it just auto inserts the coding line now whenever I save. |
Registered Member
|
I experienced this problem when I was using Ubuntu Jaunty, and eventually an upgrade fixed it. Now it has returned -- I'm running Ubuntu Lucid with the latest updates.
When I try to save even a completely blank file as something.py, I am asked for an encoding line. This is an extremely frustrating bug. |
Registered users: Bing [Bot], claydoh, Google [Bot], rblackwell