Steve wrote: > a character that must be escaped. > so if I should be getting > "\x00\x01" > I'll get > "\\x00\\x01" Are you sure that it's the dbapi driver that is doing it, or maybe the data was written to the database in that way (e.g. not chr(00)+chr(01) but '\' 'x' '0' '0' ...)?