Java Unicode Create toUnicodeEscape(int ch)

Here you can find the source of toUnicodeEscape(int ch)

Description

to Unicode Escape

License

Apache License

Declaration

private static String toUnicodeEscape(int ch) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {
    private static String toUnicodeEscape(int ch) {
        return "\\u" + String.format("%04X", ch);
    }// ww  w  .j a v a  2  s  .c  o  m
}

Related

  1. toUnicode(String value)
  2. toUnicode(StringBuilder strBuilder, char ch)
  3. toUnicodeBytes(String str)
  4. toUnicodeEncoded(String data)
  5. toUnicodeEscape(char c)
  6. toUnicodeLiteral(String s)
  7. toUnicodePoint(char c)
  8. toUnicodeRepresentation(String str)
  9. toUnicodeStr(int i)