hex

Hex code for Control+Question Mark?

I am trying to set the special characters for a serial port in a C program. I am able to find all of the hex codes except the code for ^? (Control + Question Mark) used for erase. Required settings: intr = ^C; quit = ^\; erase = ^?; kill = ^X; eof = ^D; eol = <undef>; eol2 = <undef>; swtch = <undef>; start = ^Q; stop = ^S; susp = ^Z; ...

how to represent a n-byte array in less than 2*n characters

given that a n-byte array can be represented as a 2*n character string using hex, is there a way to represent the n-byte array in less than 2*n characters? for example, typically, an integer(int32) can be considered as a 4-byte array of data ...

Convert File to HEX String Python

How would I convert a file to a HEX string using Python? I have searched all over Google for this, but can't seem to find anything useful. ...

ColdFusion: Integer "0" doesn't convert to ASCII character

I have a string (comprised of a userID and a date/time stamp), which I then encrypt using ColdFusion's Encrypt(inputString, myKey, "Blowfish/ECB/PKCS5Padding", "Hex"). In order to interface with a 3d party I have to then perform the following: Convert each character pair within the resultant string into a HEX value. HEX values are th...

Conversion of 32-bit Hex to integer

Hi, I want to convert 32-bit Hex to integer in 'C' seqBuf = "81BD82E8" This is the Hex value I'm getting and stored in a buffer The corresponding value of that hex value is 2176680680 How to convert? Please help me.... Is there any function "strtoull()" as like strtoul()... Thanks in advance... ...

Convert number into hex value in .net

Hi, i need to convert integer number to hex value that will look like this: 0x0201cb77192c851c When i do in C# string hex = int.ToString("x") it returns me this: 201cb77192c851c How can i achieve needed result? ...

how to convert hex to string?

Hi. I have the hex data: 48|65|6c|6c|6f|20|53|68|61|72|6f|6b|2e| 20|3d|43|46|3d|46|30|3d|45|38|3d|45|32|3d|45|35|3d|46|32|0d|0a|0d|0a|2e|0d|0a| The text first string is "Hello Sharok"( without quotes ) The text second string is - "Привет" (without quotes, "Привет" is "Hello" on Russian ) How to convert this in readable text(First stri...