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
Revision as of 05: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)



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