Java Byte Array to String by Charset toUnicode(byte[] isoStr, String charset)

Here you can find the source of toUnicode(byte[] isoStr, String charset)

Description

to Unicode

License

Open Source License

Declaration

private static String toUnicode(byte[] isoStr, String charset) 

Method Source Code


//package com.java2s;
//License from project: Open Source License 

import java.nio.charset.Charset;

public class Main {
    private static String toUnicode(byte[] isoStr, String charset) {
        return new String(isoStr, Charset.forName(charset));
    }/*from w  w w  .j  av  a  2 s. c  o m*/
}

Related

  1. toString(byte[] b, String charset)
  2. toString(byte[] bytes, Charset charset)
  3. toString(byte[] bytes, String charsetName)
  4. toString(byte[] data, int from, int length, Charset charset)
  5. toString(final byte[] bytes, final String charsetName)
  6. truncateByByteLength(String string, int maxBytes, Charset charset)
  7. yaml2List(Charset charset, byte[] data)