One of the guys over on the php-db list told me that to store the binary
string correctly in postrgresql, that I would
have to double quote whats already there.
So in essence, by the time it hits the database, it has to be ->
\\\0PZ\\\0<Îê˜Úµ
Any suggestions to modify the string like this...
M
Just escape the \ with a single escape character. eg. your string
'\0PZ\0<Îê˜Úµ' would end up as '\\0PZ\\0<Îê˜Úµ' - each \ simply
escapes the backslash following it. If you add two backslashes, you end
up with one too many which is what the error is referring to.
..micahel..
On Thu, 2002-06
2 matches
Mail list logo