ConvertToBase64
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==