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".
_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to