[Bytes->ImportString] imports a string into the byte stream converting each character using the desired character encoding. The method requires two parameters, the data to be imported and the character set which should be used to encode that data.
local(ByteStream = Bytes(1024, 256)) #ByteStream->ImportString('String', 'Encoding')
Use the [Bytes->ImportString] method. The following example imports a string using ISO-8859-1 encoding.
local(Bytes = Bytes('This is a string')) #Bytes->ImportString('This is some more string', 'ISO-8859-1')
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