![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| convert ascii values into ascii characters | sandeeppvk | Shell Programming and Scripting | 10 | 04-23-2009 11:23 PM |
| display all possible control characters from .xml file in unix | fantushmayu | Shell Programming and Scripting | 1 | 12-09-2008 09:50 AM |
| Unix file does not display special characters | Ryan2786 | UNIX for Dummies Questions & Answers | 3 | 06-28-2007 11:20 PM |
| Multibyte characters to ASCII | jerardfjay | Shell Programming and Scripting | 8 | 11-18-2005 02:45 AM |
| Hex characters of ascii file | budrito | HP-UX | 2 | 08-10-2005 10:26 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
How to display the ascii characters in java using unix OS
The below code is not able to converting the Hexa decimal characters into Ascii characers in Unix.
Code:
byte[] bytes = newbyte[hex.length()/2];
for(int i=0;i<bytes.length;i++){
bytes[i] = (byte)Integer.parseInt(hex.substring(2*i, 2*i+2),16);
}
String multi = new String(bytes);
System.out.println(" multi value from unHex method "+multi);
Do i need to set any characterset before converting the hexa into Ascii. Please guide me what i have to do. Last edited by pludi; 4 Weeks Ago at 01:41 PM.. Reason: code tags, please |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|