Java String HEX to String ASCII with accentuation
import java.nio.ByteBuffer; import java.nio.CharBuffer; import java.nio.charset.CharacterCodingException; import java.nio.charset.Charset; import java.nio.charset.CharsetDecoder; public class Char8859_1Decoder { public static void main( String[] args ) throws CharacterCodingException { String hex = "6174656ec3a7c3a36f"; int len = hex.length(); byte[] cStr = new byte[len/2]; for( int i = 0; i
Java
2015. 2. 13. 13:23