Charset (hopefully for the last time I ask)

Gandalf goldnery at gmail.com
Thu Jun 12 22:22:58 EDT 2008


Yes, it is 1255 it's surprising you know that.

any way this is the code I tried

        search=cnrl.GetValue()
        search= search.decode("cp1255")
        search=search.encode("utf8")
        word=''
        category=1
        cur.execute('select * from hebrew_words where word like ?',
[''+search+''])

this is the error it send me :

 'ascii' codec can't encode characters in position 0-1: ordinal not in
range(128)

have any idea?

Thank you for trying any way. it worms my Jewish  art :)



More information about the Python-list mailing list