I have an input where “Divinités” (9 characters) would be represented as “Divinit\303\251s” (actual text data of 16 characters long), how can I convert it to Haskell’s properly encoded Text (or ByteString, or String)?
I have an input where Divinités (9 characters) would be represented as Divinit\303\251s (actual
Share
First you need to unescape string converting each escape sequence to one
Char. Then useutf8-stringpackage to decode the result to actual utf8 string.