-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Jorge Godoy schrieb:

> Change the order.
>
>>>> s = u'olá'
>>>> s += 'mundo'
>>>> s
> u'ol\xe1mundo'
>>>> s = u'leite com '
>>>> s += 'café'
> Traceback (most recent call last):
>   File "<stdin>", line 1, in ?
> UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position
3: ordinal not in range(128)

This is correct, since you tell python to add a Unicode-String to an
Asc-String:
   s += 'café'
is the same as
   s = s + 'café'

BTW: Using string-concationation is bad habbit, since it's slow. One
should prever fthe % operator.

- --
Schönen Gruß - Regards
Hartmut Goebel

| Hartmut Goebel             | IT-Security -- effizient |
| [EMAIL PROTECTED] | www.goebel-consult.de    |

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with Mandriva - http://enigmail.mozdev.org

iQEVAwUBRT3rXczajR0mSa83AQJqjAf/QGcG42ieweARGPtDF2FN30AXrBHjLm9k
5Aw1qs2tFHF+jZTh/HZT12eQ5r39KwMJ9JU+th3OtHX7UvFU1Vbecjt/hEJp9hdX
pT26W0oeA7nWqKX7F9yg1FG+x1ESTgKvkdw60mnJfOJsWrjJpX2S1vVssYceMvKB
XonsUmOdWvHk35fNIioEk+r7XAmclSzqaNAFKqIy038pF2lIzihKusuIxXiXIypq
nFoaJamjDxbFPYrMAOOvhUlhi+7NEImCPf5XNPDTLMB7EUkAdwl0X6KbCrb2MZ+s
e6jP0UIzhr1NYkavuzFl2m3d9ImMvCFqECVgZjKB3JZnNv6yDcYezQ==
=coxN
-----END PGP SIGNATURE-----

-------------------------------------------------------------------------
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
sqlobject-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss

Reply via email to