Java UTF from toUTF8(String s)

Here you can find the source of toUTF8(String s)

Description

to UTF

License

Open Source License

Declaration

public static byte[] toUTF8(String s) 

Method Source Code

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

import java.nio.charset.StandardCharsets;

public class Main {
    public static byte[] toUTF8(String s) {
        return s.getBytes(StandardCharsets.UTF_8);
    }//from   w ww .j a va 2 s .c  om
}

Related

  1. toUTF8(byte[] outputBuffer, String string, char[] workingBuffer)
  2. toUtf8(final String string)
  3. toUtf8(String hex)
  4. toUTF8(String oldStr)
  5. toUtf8(String s)
  6. toUTF8(String s, String encoding)
  7. toUTF8(String str)
  8. toUTF8(String string)
  9. toUtf8(String texto)