Okay so I'm trying to do some steganography, and I'm trying to convert each character from the inputted message to an integer, which I then use to set values of my pixel.
To convert from string to an integer I'm using this line of code:-
int value = Character.getNumericValue(message.charAt(j));
However When I would convert, all my integers for my letters were 87 less than they needed to be. So I fixed that by adding 87
Then I had an issue where my numbers were being converted to an integer 48 less than they needed to be, so I fixed that by adding 48.
However now that I'm trying to convert symbols, 'int value' is being set as -1 for every symbol. (Also not too much of a problem, but my capital letters end up become lower case ones)
So my question is how do I get around that? Or is there another method of conversion I need to use?
Edit:- So what I want is that, if I have a symbol in my message, I want it to be encoded in an Image correctly, So when I decode it the message will be decoded correctly, showing those symbols.