Java Unicode Create toUnicodePoint(char c)

Here you can find the source of toUnicodePoint(char c)

Description

to Unicode Point

License

Open Source License

Declaration

public static String toUnicodePoint(char c) 

Method Source Code

//package com.java2s;
//  in accordance with the terms of the license agreement accompanying it.

public class Main {
    public static String toUnicodePoint(char c) {
        StringBuffer sb = new StringBuffer(5);
        for (int i = 3; i >= 0; i--) {
            sb.append(Character.forDigit((c >> (4 * i)) & 15, 16));
        }/*  ww  w.j  a va  2  s.c o m*/
        return sb.toString();
    }
}

Related

  1. toUnicodeBytes(String str)
  2. toUnicodeEncoded(String data)
  3. toUnicodeEscape(char c)
  4. toUnicodeEscape(int ch)
  5. toUnicodeLiteral(String s)
  6. toUnicodeRepresentation(String str)
  7. toUnicodeStr(int i)
  8. toUnicodeString(byte[] ba)
  9. toUnicodeString(byte[] data)