On May 23, 2008, at 3:55 PM, Jorge Mota wrote:

> How Python interprets this concatenation if self_error is enconded  
> with
> something different of self.sql?


        Python is supposed to convert everything to unicode. So "ascii" +  
"uni" should yield unicode.

> self.err_desc + '\nSQL: ' + self.sql
>
> If I do
>
> print 'err_desc:',self.err_desc
>
> print 'Sql:',self.sql
>
> there is no problem, but
>
> print self.err_desc + u'\nSQL: ' + self.sql alert in same way about
> coding...

        I know that you are getting non-ASCII error messages, but what are  
they? Do you know what encoding they are in? Maybe this is a problem  
of conflicting encodings?

-- Ed Leafe





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

Reply via email to