
12 Sep
2007
12 Sep
'07
3:40 p.m.
Andrea Rossato wrote:
What puzzles me is the behavior of putStrLn.
putStrLn is sending the following bytes to standard output: 97, 98, 195, 168, 195, 168, 195, 168, 10 Since the code that renders characters in your terminal emulator is expecting UTF-8[*], each (195, 168) pair of bytes is rendered as "รจ". The Unix utility "od" can be very helpful in figuring out problems like this. [*]At least on my computer, I get the same result *even if* I change "LANG" from "en_US.utf8" to "C".