On Fri, Jan 29, 2010 at 11:29 PM, Eknath Venkataramani < eknath.i...@gmail.com> wrote:
> 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 > Got it working. Did this: #!/usr/bin/python # -*- coding: UTF-8 -*- _______________________________________________ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers