Modules
Objects/Functions
SuiteScript 2.0
encode.Encoding.{|UTF_8,BASE_16,BASE_32,BASE_64,BASE_64_URL_SAFE,HEX|}
N/encode Module
encode.Encoding
Enum Description:
Holds the string values for the supported character set encoding.
This enum is used to set the value of inputEncoding and outputEncoding parameters that are members of the N/crypto Module or N/encode Module.
JavaScript does not include an enumeration type. The SuiteScript 2.0 documentation utilizes the term enumeration (or enum) to describe the following: a plain JavaScript object with a flat, map-like structure. Within this object, each key points to a read-only string value.
Supported Script Types:
Server-side scripts
For more information, see SuiteScript 2.0 Script Types.
Module:
N/encode Module
Since:
2015.1
Search NetSuite -
https://system.netsuite.com/app/help/helpcenter.nl?search=encode.Encoding
Example:
// Code Example 1
//Add additional code
//...
var reencoded = encode.convert({
string: LOREM_IPS,
inputEncoding: encode.Encoding.BASE_64,
outputEncoding: encode.Encoding.UTF_8
});
//...
//Add additional code
//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_4369865177.html