ConvertToBase64

From Catglobe Wiki
Revision as of 07:03, 2 October 2017 by Nguyenduyan (talk | contribs) (Created page with "Category:String_Functions {{HelpFiles}} = convertToBase64 = == Syntax == convertToBase64 ( text [, encoding]); == Arguments == ''text'': string. String to convert...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search



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