Try... >>> for i in bytes: print ord(i)
or >>> len(bytes) What you see isn't always what you have. Your database is capable of storing \ x 0 0 characters, but your string contains a single byte of value zero. When Python displays the string representation to you, it escapes the values so they can be displayed. casevh -- http://mail.python.org/mailman/listinfo/python-list