Java ISO String to UTF iso2utf(String value)

Here you can find the source of iso2utf(String value)

Description

isoutf

License

Apache License

Declaration

public static String iso2utf(String value) throws UnsupportedEncodingException 

Method Source Code


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

import java.io.UnsupportedEncodingException;

public class Main {

    public static String iso2utf(String value) throws UnsupportedEncodingException {
        if (value == null) {
            return null;
        }//from w ww  . j  a  v  a  2s . c o m
        return new String(value.getBytes("ISO-8859-1"), "UTF-8");
    }
}