FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free 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 -
Related topics
One w800i coming up!
C++ help
Decimal, Binary and Hexadecimal
Tweaking your 56k dial-up modem!
Installing WinXP Pro On WinME (Help Much Appreciated!)
SATA HDD
PHP script trouble
fonts in a web page
I Learned Binary Today :D
Native UK and American english speakers
Help With PHP and text
Help needed to make text box and poll script
Deleting certain lines from text file
your ideas on current layout (part 2)
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

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