
24 Mar
2010
24 Mar
'10
10:13 a.m.
Dupont Corentin
a <- readFile "list.txt" head $ lines a "abn\233gation"
putStrLn displays a strange character for the "é".
That is the escaped form of é. You have several options: 1) Use the utf8-string package for I/O 2) Use the text package for I/O (and set an encoding) 3) GHC 6.12.1 uses the system's locale for encoding; as such if your system normally lets you see accented characters then putStrLn, etc. will print them out. -- Ivan Lazar Miljenovic Ivan.Miljenovic@gmail.com IvanMiljenovic.wordpress.com