If you work with Unicode, you can try the utf8-string package
import System.IO hiding (hPutStr, hPutStrLn, hGetLine, hGetContents, putStrLn) import System.IO.UTF8 import Codec.Binary.UTF8.String (utf8Encode) main = System.IO.UTF8.putStrLn " "
However, this did not work in my CLI window, which distorts the output due to the code page. I expect it to work fine on other Unix-like systems if your language is installed correctly. However, writing to a file must be successful on all systems.
UPDATE:
An example for using a coding package.
source share