[BangPypers] UTF-8 character

Eknath Venkataramani eknath.iyer at gmail.com
Fri Jan 29 18:59:52 CET 2010


I am trying to write a program to generate a file that simply removes all
the punctuation marks from the input file.
for the usual ascii characters like .,'?!" it works. but then when I try to
do the same for the hindi fullstop (similar to |). it gives me an error
saying:
SyntaxError: Non-ASCII character '\xe0' in file punc_remover.py on line 16,
but no encoding declared
I am using UTF-8. But how do I indicate that to the interpretter


More information about the BangPypers mailing list