Iain Dooley wrote:
hi, i need to send an escape character with the value 0x1b. how can i
specify this? i'm sending from php so i did this:
$message = 'Poker '.chr(hexdec('1b')).'40 the glasgow arms';
hi Iain
the hex value for "%" char is 0x25 so you should type :
$message = 'Poker '.chr(hexdec('25')).'40 the glasgow arms';
but, if you use urlencode function then you don't have to worry about
escape codes
<?
$message = "Poker @ the glasgow arms";
print urlencode($message);
?>
you will get:
Poker %40 the glasgow arms
best regards
Cezary Siwek