[string->asbytes] converts a string object to a bytes object, and returns the value. The bytes object will contain the unicode characters of the string after conversion into a single-byte character encoding. By default the UTF-8 encoding is used. To specify an encoding, pass the name of the encoding to [string->asbytes(encoding::string)].
'String Value'->asbytes 'String Value'->asbytes('ISO-8859-1') 'String Value'->asbytes('ASCII')
Use the [string->asbytes] method. The following example converts the string object 'LassoSoft' to a bytes object, and returns the value.
Please note that periodically LassoSoft will go through the notes and may incorporate information from them into the documentation. Any submission here gives LassoSoft a non-exclusive license and will be made available in various formats to the Lasso community.
©LassoSoft Inc 2015 | Web Development by Treefrog Inc | Privacy | Legal terms and Shipping | Contact LassoSoft