Java Charset Create getCanonicalCharset(String charset)

Here you can find the source of getCanonicalCharset(String charset)

Description

get Canonical Charset

License

Open Source License

Declaration

public static String getCanonicalCharset(String charset) 

Method Source Code


//package com.java2s;

import java.nio.charset.Charset;

public class Main {

    public static String getCanonicalCharset(String charset) {
        return Charset.forName(charset).name();
    }//from   ww  w  .  j  a  v  a  2s. c o  m
}

Related

  1. getCanonicalCharset(String charset)
  2. getCharset()
  3. getCharset()
  4. getCharset(int cpgid, int gcsgid)
  5. getCharset(int ibmCharacterSetId)