decode
Decode bytes as a string.
Signature
> decode (encoding)
Parameters
encoding
: the text encoding to use
Notes
Multiple encodings are supported, here is an example of a few:
big5, euc-jp, euc-kr, gbk, iso-8859-1, utf-16, cp1252, latin5
For a more complete list of encodings please refer to the encoding_rs
documentation link at https://docs.rs/encoding_rs/0.8.28/encoding_rs/#statics
Examples
Decode the output of an external command
> cat myfile.q | decode utf-8