Skip to main content
Pentaho Documentation

Utf8Encoder

cdf.dashboard.Utf8Encoder

 
Static

Auxiliary UTF-8 encoder.

AMD Module

require(["cdf/dashboard/Utf8Encoder"], function(Utf8Encoder) { /* code goes here */ });

See also:  http://www.webtoolkit.info/javascript_utf8.html

Source: dashboard/Utf8Encoder.js, line 72

Methods

Name Description
encode_prepare(s) : String

Prepares a UTF-8 string to be used in Opera or Internet Explorer.

encode_prepare_arr(value) : String | Array | Number

Prepares an array containing UTF-8 strings to be used in Opera or Internet Explorer.

Methods Details

encode_prepare(s) : String

Prepares a UTF-8 string to be used in Opera or Internet Explorer.

Source: dashboard/Utf8Encoder.js, line 88

Parameters:
Name Default Value Summary
s : String  

String to be prepared.

Returns:
Name Description
String | null

The prepared string.

encode_prepare_arr(value) : String | Array | Number

Prepares an array containing UTF-8 strings to be used in Opera or Internet Explorer.

Source: dashboard/Utf8Encoder.js, line 109

Parameters:
Name Default Value Summary
value : String | Array | Number  

Value to be prepared.

Returns:
Name Description
String | Array | Number

The prepared value.