How to convert Unicode Escape Sequence to Unicode String in Haskell

Prelude> putStrLn “\3619\3657\3634\3609\3648\3592\3657\3648\3621\3657\3591” ร้านเจ้เล้ง Note that you don’t actually have the string “\3619\3657\3634\3609\3648\3592\3657\3648\3621\3657\3591” – rather, you have the UTF-32 string ร้านเจ้เล้ง, for which “\3619\3657…” happens to be a ASCII-compliant literal. By default, GHCi uses the Show instance to display results, which doesn’t so much show things as spit out literals that can be used as … Read more