I am migrating a code from VB to JAVA. In which am processing a string which contains some non printable characters. The ASCII value for some of these is differnt from the int value of that in JAVA. Please advise me what to do in this case. I dont even know whether this can be done at all. Please help
Originally posted by Edwin Dalorzo: That is strange because the ASCII values correspond to same characters in Java.
However it's quite common for people familiar with VB to not realize that ASCII officially only encodes positions 0 to 127. Often they don't realize that what they have been calling "ASCII" is one of several dozen "extended ASCII" encodings which encode positions 128 to 255 in many different ways that usually do not correspond with Unicode. [ April 14, 2006: Message edited by: Paul Clapham ]
posted 13 years ago
the code i am trying to migrate was written in VB a few years back and it is very VB specific. It reads a jpg file like a txt file and converts the data into hex and stores in the database. The charecters are taken in a byte array and converted to hex array. in vb always the hex string is always of 2 chars length.(i dunno why). but if i do the same in java it is sometimes 16 chars long. i am totally clueless.Please help
Am not a pro and thats why am here!!!
A sonic boom would certainly ruin a giant souffle. But this tiny ad would protect it:
how do I do my own kindle-like thing - without amazon