Java Unicode Create toUnicode(String source)

Here you can find the source of toUnicode(String source)

Description

to Unicode

License

Open Source License

Declaration

public static String toUnicode(String source) 

Method Source Code


//package com.java2s;
import java.io.UnsupportedEncodingException;

public class Main {

    public static String toUnicode(String source) {
        String ret = null;/*from   w w w.j ava 2s.  c o  m*/
        if (source == null)
            return null;
        try {
            ret = new String(source.getBytes(), "8859_1");
        } catch (UnsupportedEncodingException e) {
            ret = null;
        }
        return ret;
    }
}

Related

  1. toUnicode(String input)
  2. toUnicode(String input)
  3. toUnicode(String input)
  4. toUnicode(String original)
  5. toUnicode(String s)
  6. toUnicode(String str)
  7. toUnicode(String str)
  8. toUnicode(String str)
  9. toUnicode(String str)