Hi,
I have tried to encode using the getBytes() method. When i use some character like "€" in the string. it is not getting decoded properly. Kindly help. Please find the below code for details.
When I run the program am getting output like "ab?c%?" instead of "ab?c%€".
The 8859_1 character set is the simple ANSI set which does not include a character for the euro symbol. As such there is no way to represent the character using this (the default) character set. Your only solution is to use a character set capable of representing this character or do some sort of custom encoding/decoding.