473,409 Members | 1,970 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,409 software developers and data experts.

code for Ascii value?

can anybody send me the code snippet to find the ascii value of character?
Mar 12 '07 #1
7 2030
Ganon11
3,652 Expert 2GB
Should be

Expand|Select|Wrap|Line Numbers
  1. System.out.println((int)yourChar);
Mar 12 '07 #2
r035198x
13,262 8TB
can anybody send me the code snippet to find the ascii value of character?
Expand|Select|Wrap|Line Numbers
  1.  
  2. char c = 'A';
  3. int i = (int) c;
  4. System.out.println(i);
  5.  
Mar 12 '07 #3
Should be

Expand|Select|Wrap|Line Numbers
  1. System.out.println((int)yourChar);

thanks buddy....

but i forgot to mention that i want the code in java script....

so please if u know that also pls reply
Mar 13 '07 #4
Expand|Select|Wrap|Line Numbers
  1.  
  2. char c = 'A';
  3. int i = (int) c;
  4. System.out.println(i);
  5.  

thanks buddy....

but i forgot to mention that i want the code in java script....

so please if u know that also pls reply
Mar 13 '07 #5
r035198x
13,262 8TB
thanks buddy....

but i forgot to mention that i want the code in java script....

so please if u know that also pls reply
Well this is a Java forum and Java != Javascript

I'll now move this to the Javascript forum.
Mar 13 '07 #6
acoder
16,027 Expert Mod 8TB
Use charCodeAt. See this thread and this link.
Mar 13 '07 #7
can u tell me how can i redim the array in java script just like in vb we do?
Mar 14 '07 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: Haas | last post by:
Hello folks, I just started a C++ course. An exercise is to give the ASCII value of a character read from keyboard. I place the input from the keyboard in a char-variable. How can i get the...
5
by: lkrubner | last post by:
I know I'm missing something obvious, but I looked hard at this page and did not see the format of the return specified: http://us3.php.net/manual/en/function.ord.php >From the limited example...
1
by: tranky | last post by:
Hi, i'm italian...excuse me for my bad english. I've a problem. I need to download the code of a web page, but the translation of many character is invalid. An example is "à" wich is translate in...
9
by: pamelafluente | last post by:
I have found on the web a post with this useful way to convert (if possible) a ScanCode to Ascii. This is remarkably useful to filter keys under KeyDown/up event. My problem is that I am not...
7
by: Jeffrey Spoon | last post by:
Hello, I'm a bit stuck trying to convert a text file which contains extended ASCII text and changing the ASCII values so they become readable. I do this by subtracting 127 from the ASCII value....
239
by: Eigenvector | last post by:
My question is more generic, but it involves what I consider ANSI standard C and portability. I happen to be a system admin for multiple platforms and as such a lot of the applications that my...
232
by: robert maas, see http://tinyurl.com/uh3t | last post by:
I'm working on examples of programming in several languages, all (except PHP) running under CGI so that I can show both the source files and the actually running of the examples online. The first...
8
by: ianenis.tiryaki | last post by:
i couldnt figure out how i am supposed to find the ASCII code is there any way to do it? and main problem is i am not sure so i wanted to ask is it going to display 'a' ? am i right? What is...
11
by: Freddy Coal | last post by:
Hi, I'm trying to read a binary file of 2411 Bytes, I would like load all the file in a String. I make this function for make that: '-------------------------- Public Shared Function...
0
by: nmsreddi | last post by:
Hi friends I am working on serialport in c# ,i am using C#2005 i have successfully done the serial communication with GSM modem and able to send and receive data , the main problem ,the serial...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.