Java UTF8 Encode utf8Encode(String str)

Here you can find the source of utf8Encode(String str)

Description

utf Encode

License

Open Source License

Declaration

public static byte[] utf8Encode(String str) 

Method Source Code


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

import java.nio.charset.StandardCharsets;

public class Main {
    public static byte[] utf8Encode(String str) {
        return str.getBytes(StandardCharsets.UTF_8);
    }// w w w  .j  a v  a  2s  .co  m
}

Related

  1. utf8Encode(final Collection col)
  2. utf8Encode(final String s)
  3. utf8Encode(final String value)
  4. utf8Encode(String s)
  5. utf8Encode(String str)
  6. Utf8Encode(String string)
  7. utf8Encode(String url)
  8. utf8FromString(String sIn)
  9. utf8urlencode(String text)