Java Hex to Unicode convertHexToUni(String theNumber)

Here you can find the source of convertHexToUni(String theNumber)

Description

convert Hex To Uni

License

Open Source License

Declaration

public static String convertHexToUni(String theNumber) 

Method Source Code

//package com.java2s;

public class Main {
    public static String convertHexToUni(String theNumber) {
        char[] the_unicode_char = new char[1];
        try {/*  ww  w .j  a  va2  s  .co m*/
            the_unicode_char[0] = (char) Integer.parseInt(theNumber, 16);
        } catch (NumberFormatException nfe) {
            return null;
        }
        return new String(the_unicode_char);
    }
}

Related

  1. ConvertHexToUnicode(String hexCode)