Page 1 of 1

How can I understand this data?

Posted: Fri May 04, 2007 5:45 pm
by toasty2
I am querying a source-engine based game server, and I'm trying to figure out how i can work with the response data the server sends back to me.

I am doing this query: http://developer.valvesoftware.com/wiki ... s#A2S_INFO

Look at the example response, I am getting a response similar to that when I query a server. I want to separate the information in the response using explode(), but I don't know what the character between each piece of data is. It shows up as a question mark in my browser. Can any one tell me what character that is?

Posted: Fri May 04, 2007 8:19 pm
by toasty2
Using urlencode() helped me figure this out. I just urlencode()-ed it, replaced the characters (%00) with my own delimiters, and urldecode()-ed it back again. urlencode() is often overlooked when working with stuff, I'm glad I thought of it.