Squeak
  links to this page:    
View this PageEdit this PageUploads to this PageHistory of this PageTop of the SwikiRecent ChangesSearch the SwikiHelp Guide
Encoding
Last updated at 9:34 am UTC on 4 October 2017
Encoding is the process of transforming a set of Unicode characters into a sequence of bytes.

In contrast, decoding is the process of transforming a sequence of encoded bytes into a set of Unicode characters. (Source)

Pharo

(December 2015)
Pharo:
 'Les élèves Français' encodeWith: #iso99591 
 "#[76 101 115 32 233 108 232 118 101 115 32 70 114 97 110 231 97 105 115]"

 'Les élèves Français' collect: #asInteger as: Array  
 "#(76 101 115 32 233 108 232 118 101 115 32 70 114 97 110 231 97 105 115)"

 'Les élèves Français' utf8Encoded
 "#[76 101 115 32 195 169 108 195 168 118 101 115 32 70 114 97 110 195 167 97 105 115]"

Squeak

(December 2015)
TextConverter
UTF8TextConverter
 ('Les élèves Français' convertToEncoding: '99591'  ) asByteArray 
 #[76 101 115 32 233 108 232 118 101 115 32 70 114 97 110 231 97 105 115]

dotNet


Character Encoding in the .NET Framework (UTF formats).

Python

https://docs.python.org/3/howto/unicode.html#encodings

See also

String convertFromEncoding: encodingName