I'd like to translate between Strings and ByteStrings using various encodings.
I know there is the utf8-string package which handles the UTF8 encoding. However, there are a lot of other encodings described in System.IO.
I also see the Data.Text package which can translate between String, Text and ByteString using different encodings.
What's the most appropriate way to translate between String and ByteString using the various encodings?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With