Hello, I've just run into a snag and I'm wondering if anybody might be able to point me towards a solution. Normally, I get data from a submitted form like this:
my_string = str(Request("formstring")) which is great until formstring contains a non ascii character. When it does I get a UnicodeEncodeError (i.e ascii codec .... ordinal out of range). I thought I would be able to do my_string = unicode(Request("formstring"),"ISO-8859-1") But i get: coercing to Unicode: need string or buffer, instance found. I'm guessing (and I mean guessing) this is because the CDispatch object doesn't have a __unicode__ function. Am I doing something fundamentally wrong? Other than modifying the Python win32 source is there a way to solve this? Any help/pointers/shouts that I'm being stupid greatfully recieved. Cheers, Emlyn. _______________________________________________ Python-win32 mailing list Python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32