Haskell: conversion between byte strings and various text encodings

I would like to translate between strings and bytes using different encodings.

I know there is a utf8-string package that handles UTF8 encoding. However, there are many other encodings described in System.IO .

I also see a Data.Text package that can translate between String, Text and ByteString using different encodings.

What is the most suitable way to translate between String and ByteString using different encodings?

+5
source share

All Articles