|
Posted by guilesf2@hotmail.com on 08/20/07 18:13
When serializing the following object:
class a {
private $_x = 0;
}
I get
O:1:"a":1:{s:5:"a?_x";i:0;}
The question mark character in that string, which I belive has
something to do with
indicating the private visibility, is not actually a question mark,
but some other
symbol. If you copy and paste that character in vi, it comes out as 3
different
chars (an i with 2 dots, upside down question mark and 1/2 symbol) or
in
a ascii-hex converter it comes out as %fffd as opposed to the actual
question
mark character (?) of %3f
What exactly is this character(s)?
The reason I'm having trouble is I'm trying to serialize an object and
store it in
MSSQL, but MSSQL throws an error about unclosed quote.
I figure if I could change these chars into something, store it and
change it back
later I would be okay, but I can't figure out what it is (they are) to
search for it.
Any help or insight would be appreciated.
[Back to original message]
|