Java UTF from toUTF8k(String in)

Here you can find the source of toUTF8k(String in)

Description

to UT Fk

License

Open Source License

Declaration

public static String toUTF8k(String in) 

Method Source Code

//package com.java2s;
/*//from   w w  w .j  a v  a2 s .c om
 * M2M ServiceFOTA ONM version 1.0
 *
 *  Copyright ? 2014 kt corp. All rights reserved.
 *
 *  This is a proprietary software of kt corp, and you may not use this file except in
 *  compliance with license agreement with kt corp. Any redistribution or use of this
 *  software, with or without modification shall be strictly prohibited without prior written
 *  approval of kt corp, and the copyright notice above does not evidence any actual or
 *  intended publication of such software.
 */

public class Main {

    public static String toUTF8k(String in) {

        String utf = in;

        try {

            if (in != null)
                utf = new String(in.getBytes("EUC-KR"), "UTF-8");

        } catch (Exception e) {
        }
        return utf;
    }
}

Related

  1. toUTF8ByteArray(String s)
  2. toUtf8ByteArray(String source)
  3. toUtf8Code(char utf16)
  4. toUtf8Codes(String str)
  5. toUTF8FromLatin1(byte[] outputBuffer, String string)
  6. toUtf8Path(String path)
  7. toUTF8String(byte[] b, int offset, int length)
  8. toUtf8String(String source)
  9. toUTF8String(String str)