Message114198
| Author |
Claudiu.Popa |
| Recipients |
Claudiu.Popa, belopolsky, eric.araujo |
| Date |
2010年08月18日.06:01:52 |
| SpamBayes Score |
0.00010577274 |
| Marked as misclassified |
No |
| Message-id |
<1282111315.97.0.803399409738.issue9598@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
Hello.
As it seems, untabify.py opens the file using the builtin function open, making the call error-prone when encountering non-ascii character. The proper handling should be done by using open from codecs library, specifying the encoding as argument.
e.g. codecs.open(filename, mode, 'utf-8') instead of simply open(filename, mode). |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2010年08月18日 06:01:56 | Claudiu.Popa | set | recipients:
+ Claudiu.Popa, belopolsky, eric.araujo |
| 2010年08月18日 06:01:55 | Claudiu.Popa | set | messageid: <1282111315.97.0.803399409738.issue9598@psf.upfronthosting.co.za> |
| 2010年08月18日 06:01:53 | Claudiu.Popa | link | issue9598 messages |
| 2010年08月18日 06:01:52 | Claudiu.Popa | create |
|