Toggle menu
876
3.8K
30.2K
279.1K
Catglobe Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

ConvertToBase64

From Catglobe Wiki



convertToBase64

Syntax

convertToBase64 ( text [, encoding]);

Arguments

text: string. String to convert

encoding: string

Return type

String

Example

string a = convertToBase64 ("Cái gì thế");
print(a);//Q8OhaSBnw6wgdGjhur8=

string a = convertToBase64 ("Cái gì thế", "UTF-8");
print(a);//Q8OhaSBnw6wgdGjhur8=

string a = convertToBase64 ("Cái gì thế", "ASCII");
print(a);//Qz9pIGc/IHRoPw==

string a = convertToBase64 ("Cái gì thế", "ISO-8859-1");
print(a);//Q+FpIGfsIHRoPw==