But, I'm not creating the 'query', SQLObject, or something else is.  I'm
just assigning values to my object with the following:

 

o = OrderHistory(orderNumber=int(orderNumber),
orderSequence=int(orderSequence), plantID=int(plantId),

billToID=int(billToId), shipToID=int(shipToId), customerID=int(customerId),
dropShipID=int(dropShipId),

dateRequired=dateRequired.encode('utf8'),
dateShipOk=dateShipOk.encode('utf8'), districtID=int(districtId), 

dateOrdered=dateOrdered.encode('utf8'), hdUser=hdUser.encode('utf8'),
hdWorkstation=hdWorkstation.encode('utf8'), taxCode=taxCode.encode('utf8'),
orderType=orderType.encode('utf8'), poNumber=poNumber.encode('utf8'),
termsCode=termsCode.encode('utf8'), shipVia=shipVia.encode('utf8'),
shipViaDescription=shipViaDescription.encode('utf8'),
dateLastInvoiced=dateLastInvoiced.encode('utf8'),
lastInvoiceNumber=int(lastInvoiceNumber), bankNumber=int(bankNumber),

lotControlledItem=lotControlledItem.encode('utf8'),
taxOverride=taxOverride.encode('utf8'), freightAmount=freightAmount,

specialChargeAmount=specialChargeAmount, totalOrderAmount=totalOrderAmount,
dateShipped=dateShipped.encode('utf8'), mailCode=mailCode.encode('utf8'),
loadNumber=int(loadNumber), orderedBy=orderedBy.encode('utf8'),

arrivalNumber=arrivalNumber.encode('utf8'),
hasBeenFaxed=hasBeenFaxed.encode('utf8'), fobCode=fobCode.encode('utf8'))

 

How am I to tell what is causing the problem?

 

      -Jim

 

 

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Oleg
Broytmann
Sent: Tuesday, February 06, 2007 10:12 AM
To: [email protected]
Subject: Re: [SQLObject] decoding Unicode is not supported

 

On Tue, Feb 06, 2007 at 09:31:52AM -0600, Jim Steil wrote:

>     myquery = unicode(query, self.encoding)

> 

> TypeError: decoding Unicode is not supported

 

   "query" must be string here. You have passed a unicode somewhere to

SQLObject where it is not allowed.

 

Oleg.

-- 

     Oleg Broytmann            http://phd.pp.ru/            [EMAIL PROTECTED]

           Programmers don't die, they just GOSUB without RETURN.

 

-------------------------------------------------------------------------

Using Tomcat but need to do more? Need to support web services, security?

Get stuff done quickly with pre-integrated technology to make your job
easier.

Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo

http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

_______________________________________________

sqlobject-discuss mailing list

[email protected]

https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
sqlobject-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss

Reply via email to