The moose likes HTML, CSS and JavaScript and the fly likes convert data in javascript Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Practical Unit Testing with TestNG and Mockito this week in the Testing forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "convert data in javascript" Watch "convert data in javascript" New topic
Author

convert data in javascript

Tausif Khanooni
Ranch Hand

Joined: Nov 14, 2002
Posts: 107
Hi all,
I need to convert hexa/ansi values to char / string..
for example i have to convert '50h' to 'P' and so on...
can any one help me which javascript function i can use??
I know escape() function i can use but scape function will return
me ansi value :-( i need it to convert it into string
thanx in advance


"Walking on water and building IT Architecture from <br />specification are easy if and only if both are frozen"
Yuriy Fuksenko
Ranch Hand

Joined: Feb 02, 2001
Posts: 411
There are couple functions you might want to look at
parseInt
fromCharCode
For example

will alert "P".
 
IntelliJ Java IDE
 
subject: convert data in javascript
 
Threads others viewed
Can this Java code convert to Javascript code
md5 jsp javascript
String COnversion from ansi to ascii
what is the way of writing java code for converting into javascript?
Drop down from DataBase problem
developer file tools

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture