Current Position:Home > Convert char to ascii

Convert char to ascii

Update:10-11Source: network consolidation
Advertisement
Hello,
How can i convert a char to ascii, and ascii to char??
thanks,
Riss

The Best Answer

Advertisement
its quite simle really.
// 199 is the ascii value for 'w';
char doubleU = 119;
System.out.println(doubleU);
//or
String doubleUString = "119";
doubleU = (char) Integer.valueOf(doubleUString).intValue();
System.out.println(doubleU);
//to get the ascii value of a letter
System.out.println(doubleU);
doubleUString = "w";
doubleU = doubleUString.charAt(0);
System.out.println(doubleU);
System.out.println((int) doubleU);
  • Convert char to ascii code and vice versa Update:10-11

    HI Is there any function module to convert char to ascii code and vice versa. Thanks in advanceHi, be careful if you have unicode running in your system. URL_ASCII_CODE_GET is platform-dependent so it will return the internal HERX representation of t

  • Convert char to ascii Update:10-11

    Hello, How can i convert a char to ascii, and ascii to char?? thanks, Rissits quite simle really. // 199 is the ascii value for 'w'; char doubleU = 119; System.out.println(doubleU); //or String doubleUString = "119"; doubleU = (char) Integer.val

  • Converting char to ascii Update:11-30

    is there a method that takes in a char as a parameter, and returns its ascii value?When you post a "code not working" type message, please also post how it is not working. Does it give you a compiler error (if so, what) or a runtime exception, o

  • Convert String from ASCII to ANSI Update:11-30

    Hi, a command line instruction via LabVIEW function "System Exec.vi" retrieves me a string in ASCII format. Is there a function to convert string from ASCII to ANSII format? I use LabVIEW 8.5 German Installation. Kind Regards Christian Test Engi

  • How to convert character to ascii Update:11-30

    Hi i need to check the value of the character less than space so need to make calc based on ASCII values can some one tell me how can i convert chars & numbers to ASCIIHi, Please check this code: Below logic is for convert from character to ascii val

  • Jni: converting char* to JNI type? Update:11-30

    In my native C++ code I have to call a function through another dll. This function has an OUT parameter which is of type: char *. I need to return this parameter to the calling Java method through the native C++ code using JNI ...is the corresponding

  • Convert char to currency Update:10-11

    Hi all, i searched alot but couldn't find solution. i have l_value char(45) field value has 4560 I need to convert this into vbak-netwr field in sales order user exit MV45AFZZ when i assign vbak-netwr = l_value. I am getting 45.60 in vbak-netwr field

  • Convert Char to Date format - Evaluate Update:10-11

    Hi, Could anyone provide us the Evaluate formula to convert Char to Date format 2009-06-20 should be converted to 06/20/2009 Regards, VinayHi, Refer the below threads... Re: How to convert string to date format? how to convert character string into d

  • Convert Char to Date in SQL Server Update:10-11

    Hello Experts, I am trying to convert Char to Date but getting error in Universe designer. Can anybody advise please? Thanks, RaviHi, Try with CAST() and CONVERT() functions. For more information refer use this url : http://msdn.microsoft.com/en-us/l

  • Convert char to dec Update:10-11

    Dear all ,     I have to convert char to dec , my requirement is to covert  12344434 to 123444.34 . note i don't want 12344434 to 12344434.00 . Thanks in advance DebeshYou can try like this. DATA : v_tot_len TYPE i,         v_off_len TYPE i. DATA : v