ByteString
Last updated at 11:16 pm UTC on 14 April 2018
(Squeak 5.1)
String variableByteSubclass: #ByteString
instanceVariableNames: ''
classVariableNames: ''
poolDictionaries: ''
category: 'Collections-Strings'
Class comment:
This class represents the array of 8 bit wide characters.
ByteString allInstances last: 10
Note about encoding:
Yoshiki Ohshima writes to the Squeak mailing list 7th Dec 2015:
ByteStrings are meant to be ISO-8859-1.
Unfortunately, Squeak does use ByteString to store UTF-8 . My intention was only transiently;
in hindsight, it would have been a better convention to use ByteArray
for this transient UTF-8 data.
See WebClient for an example of #utf8ToSqueak