ConvertToBase64: Difference between revisions
From Catglobe Wiki
More actions
Nguyenduyan (talk | contribs) Created page with "Category:String_Functions {{HelpFiles}} = convertToBase64 = == Syntax == convertToBase64 ( text [, encoding]); == Arguments == ''text'': string. String to convert..." |
(No difference)
|
Latest revision as of 05:03, 2 October 2017
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==