Dean Allen Provins wrote:
> Hello:
>
> Is there a trick to adding a Python ODBC connection to Oracle?
>
> Under Windows, with Python's "odbc" module, I can see MS Access (twice), 2
> system databases that the IT people created. and at various times. dbase and
> excel as data sources.
>
> Curious
> 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.
A __unicode__
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 UnicodeEnco