[email protected] wrote:
> Paul,
> 
> In line 1377 of dCursorMixin where we are building the sql update statement
> there is a problem handling binary data.  Converting string data to unicode
> won't work for string data for byte values > 128.
> 
> For example, u'\x55' is OK but u'\xFF' is not allowed.  
> 
> When we do the string substitution, if any string is unicode, then the
> entire string is implicitly converted to unicode.  In our case it's
> something like ...sql="set %s = %s"%(u'fieldname','\xFF') so it barfs.
> 
> I think if we wrap the first parameter with a str() command that it may work
> assuming that the field name should never need to be in unicode. 

I agree that we don't want to try to convert binary data to unicode, especially 
not 
using the ascii codec.

> What cha think?

Did you try my patch?

Paul


_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/[email protected]

Reply via email to