Posts: 7
Threads: 1
Joined: Jan 2013
Reputation:
0
I need the algorithm which converting string (any letters, symbols, numbers) to numbers (can be ASCII). On php I've seen that there are this functions, but on pawn - not.
Hm, what could explain how to write this functions, or explain how to write.
On pawn I'm not novice.
Thanks.
Posts: 977
Threads: 10
Joined: Apr 2011
Reputation:
0
Only way I can honestly think of doing this would be to loop through each character in the string then get its corresponding ASCII decimal value, storing that into another string (strcat).
As for the decoding, that is another problem as each character can have different numbers that take more characters to display (i.e. ' ' = 32, 'i' = 105). You would need some sort of delimiter inserted between characters.
Posts: 7
Threads: 1
Joined: Jan 2013
Reputation:
0
I have one mind.
I call with HTTP() function .php file from my hosting and on here call php decode/uncode functions.
Posts: 977
Threads: 10
Joined: Apr 2011
Reputation:
0
Yeah, that would work. I've never personally used the HTTP function so cannot say how efficient that would be, but definitely worth trying.