On 10/23/06, sophana <[EMAIL PROTECTED]> wrote:

> I'm still suffering on the python bug when you add a string to an
> unicode with +=, the string is encoded into ascii.

This is NOT a Python bug.

> I still don't
> understand why python didn't merge unicode and strings.

Because you cannot add a string to a unicode object.  If you do this
without specifying an encoding, it usually reveals a bug in you code.
Whithout specifying an encoding, which should be used to convert the
string to a unicode object, Python uses ASCII as default encoding.

It is important to understand this, otherwise it is likely that a
program works just "by accident" and will fail under different input.

Read http://www.joelonsoftware.com/articles/Unicode.html

Then google for Python and unicode.

-------------------------------------------------------------------------
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