Skip to content
Reference > Methods

strEncodeBytes(str,encoding)

Definition

Binary strEncodeBytes(String str, String encoding)

Description

Encodes String and returns it as a Byte using the given encoding scheme. Supported schemes include US-ASCII, ISO-8859-1, UTF-8, UTF-16BE, UTF-16LE, UTF-16.

Parameter Definition

Name Type Description
str String string to encode
encoding String encoding scheme