FRIHOSTFORUMSFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

help me with converting decimal value to text

 


sean
Im searching for way to convert decimal value to text
eg.) it's from a html file source
String.fromCharCode(65,66,67)

65 means A
66 = B
67 = C
I need a tool or decoding scripts can do this.
convert 65 66 67 to ABC... etc.

is there any tool or scripts can do this? thanks.
Helios
ASCII - Decimal - Hex - Binary converter

http://www.vortex.prodigynet.co.uk/misc/ascii_conv.html
Guest
@sean
Im searching for way to convert decimal value to text
eg.) it's from a html file source
String.fromCharCode(65,66,67)

65 means A
66 = B
67 = C
I need a tool or decoding scripts can do this.
convert 65 66 67 to ABC... etc.

is there any tool or scripts can do this? thanks.

=======================
you can use ordinal function to convert character to byte in every programing language...
example :
<?php
echo ord("A"); // will print out 65
?>
sean
@Helios
I humbly bow before you Helios and thanks for the link. that's exactly what i need it. saved sourcecode. Smile

@Maxwell
thanks for info. didnt know that kind of simple code before.
btw, could you plz post any code for converting 65 to A not A to 65.
thanks for your help.
Guest
@sean
thanks for info. didnt know that kind of simple code before.
btw, could you plz post any code for converting 65 to A not A to 65.
thanks for your help.
===========

that's was as simple as ord ... use "char()" function

<?php
echo char(65); // will print out "A"
?>
sean
thanks for all info. it will be a great help to me.
btw,Guest? where goes Maxwell? thanks anyway. Smile
- Problem Solved -
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.