I am using php along with memcached.
Now I push the following two values into the cache:
[{"size":"8","0":"8","active":"1","1":"1"}]
[{"id":"1","URL":"http:\/\/myurl.com","status":"0"}]
I can set and retreive them in php without problem.
However, I also want to access this variable from C# (I then parse the JSON).
All went well for the first value, but I got weird results for the second! I didn’t understand why, and I still don’t. After getting the value directly from memcached from a telenet session, I got the following:
weird output http://i55.tinypic.com/dwrn83.png
I have no clue on why this happens? Someone said something about the php lib doing something with ASCII vs. unicode to me, but I don’t know if this is true, nor do I know how to solve it.
Can anyone tell me what’s going on?
Thanks!
Check to see if you have Memcached compression turned on. This may just be a compressed version of your data.