parsing non-ascii characters
John Machin
sjmachin at lexicon.net
Sun Nov 9 21:39:48 EST 2008
On Nov 10, 1:13 pm, Ronn <ronn.r... at gmail.com> wrote:
> Hello all,
>
> I have a list:
> suffix = ["aĉ", "ad", "aĵ", "an", "ar"]
>
> and I'm trying to check a word to see if any of the suffixes exist in
> the list for example:
> if word in suffix:
> print "A suffix exist in your word"
>
> when I run this it give me an error:
> SyntaxError: Non-ASCII character '\xc5' in file vortaro.py on line
> 33, but no encoding declared;
Read this:
http://docs.python.org/tutorial/interpreter.html#source-code-encoding
Read all of the tutorial.
> is there a way to parse Non-ASCII characters in python?
This question is meaningless.
More information about the Python-list
mailing list