Results 1 to 2 of 2
Thread: Getting ascii from a String
- 03-07-2009, 06:36 AM #1
Member
- Join Date
- Feb 2009
- Posts
- 29
- Rep Power
- 0
Getting ascii from a String
Hi,
Below are lines of codes how I get the data from serial port.
byte[] readBuffer = new byte[1];
int numBytes = inputStream.read(readBuffer);
String result = new String(readBuffer);
This data which I get from serial port is a Delivery Report from GSM modem. I read it 1 character at a time. These characters also contains junk characters like '>', 'Enter Key',etc.. I want to make it more understandable by only putting text characters in a text file. Now for this I want to check the ascii values of these characters.
Can anyone help in How to get the ascii values from a String variable.
Regards
Ali.
- 03-07-2009, 10:11 AM #2
Similar Threads
-
Another ascii question....
By akira220984 in forum New To JavaReplies: 5Last Post: 02-20-2009, 01:38 AM -
Converting ASCII format
By right2001 in forum New To JavaReplies: 7Last Post: 02-17-2009, 03:55 PM -
I need help with ascii characters
By Grandon in forum EclipseReplies: 17Last Post: 11-08-2008, 02:12 AM -
Ascii code.........
By Somitesh Chakraborty in forum New To JavaReplies: 6Last Post: 11-04-2008, 05:32 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks