Re: [SQLObject] Character escaping for strings
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
From: Javier R. <jav...@Ho...> - 2003-08-21 07:49:46
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Ian Bicking wrote: > On Wednesday, August 13, 2003, at 08:56 PM, Javier Ruere wrote: > >> When storing strings, the characters in them are escaped but they are >> not unescaped when retrieving the string from the database. Is this a >> bug or the intended behaviour? >> > That's odd... that shouldn't be the behavior, but it's the > responsibility of the database driver (psycopg, MySQLdb, etc) to do > anything related to converting data that comes from the database. > > Ian Ian, Welcome back! But IIRC SQLObject converts the scaped characters (for ex. '\n' -> '\\n') so shouldn't it convert the characters back? I got the problem while trying to store th result from a pickle. Later, Javier -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQE/RDxD8XQC840MeeoRAqk7AJ4gGoxuBj6u5rkhWNefB+E69fBmbQCgrngx bKVMmfC0iMiVhAHkjS3RmQk= =4Rap -----END PGP SIGNATURE----- |