Previous: , Up: I18N.EncodedStream   [Index]


5.2.2 I18N.EncodedStream class: instance creation

encoding: anUnicodeString

Answer a pipe of encoders that converts anUnicodeString to default encoding for strings (the current locale’s default charset if none is specified).

encoding: aStringOrStream as: toEncoding

Answer a pipe of encoders that converts anUnicodeString (which contains to the supplied encoding (which can be an ASCII String or Symbol).

on: aStringOrStream from: fromEncoding

Answer a pipe of encoders that converts aStringOrStream (which can be a string or another stream) from the given encoding to the default locale’s default charset.

on: aStringOrStream from: fromEncoding to: toEncoding

Answer a pipe of encoders that converts aStringOrStream (which can be a string or another stream) between the two supplied encodings (which can be ASCII Strings or Symbols)

on: aStringOrStream to: toEncoding

Answer a pipe of encoders that converts aStringOrStream (which can be a string or another stream) from the default locale’s default charset to the given encoding.

unicodeOn: aStringOrStream

Answer a pipe of encoders that converts aStringOrStream (which can be a string or another stream) from its encoding (or the current locale’s default charset, if the encoding cannot be determined) to integers representing Unicode character codes.

unicodeOn: aStringOrStream encoding: fromEncoding

Answer a pipe of encoders that converts aStringOrStream (which can be a string or another stream) from the supplied encoding (which can be an ASCII String or Symbol) to integers representing Unicode character codes.