--nextPart2417893.0rxmqMXrvm Content-Type: multipart/mixed; boundary="Boundary-01=_kqiTF9EXPUOnu2a" Content-Transfer-Encoding: 7bit Content-Disposition: inline --Boundary-01=_kqiTF9EXPUOnu2a Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hello, I am trying to make a program that outputs some Unicode characters but the= =20 output doesn't match what I try to print. Attached is a little test program. It tries to print the arrows "=E2=86=90= =E2=86=91=E2=86=92=E2=86=93" but=20 instead it outputs "\220\221\222\223" (that is, character number 220, then= =20 221, then 222). I've also tried writing the Unicode code points (although G= HC=20 6.6 should deal just fine with Unicode source code) and I get the same=20 result. In case anybody wants to try, this would be the=20 string: "\8592\8593\8594\8595". I am also attaching the output file, you can see that the contents are not= =20 right. Any ideas what am I doing wrong here ? Thank you. =2D-=20 Pupeno (http://pupeno.com) --Boundary-01=_kqiTF9EXPUOnu2a Content-Type: text/plain; charset="utf-8"; name="test.hs" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="test.hs" import qualified System.IO as IO main =3D do let str =3D "=E2=86=90=E2=86=91=E2=86=92=E2=86=93" putStrLn str h <- IO.openFile "test.output" IO.WriteMode=20 IO.hPutStrLn h str =09 --Boundary-01=_kqiTF9EXPUOnu2a Content-Type: text/plain; charset="utf-8"; name="test.output" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="test.output" kJGSkwo= --Boundary-01=_kqiTF9EXPUOnu2a-- --nextPart2417893.0rxmqMXrvm Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5-ecc0.1.6 (GNU/Linux) iD8DBQBFTiqpfW48a9PWGkURAvEeAJ0XLN9Fpu5Nu7DMKC8Cq7kTZFCOiwCfUiYo brM2uZa2RYC2Nep+Fb2k39E= =46gk -----END PGP SIGNATURE----- --nextPart2417893.0rxmqMXrvm--