
27 May
2002
27 May
'02
8:57 p.m.
I have a code that reads a string from a list of CChar's
shortName = map (toEnum.fromIntegral) shortname
When I have a turkish character like Ý the interpreter will:
StockList> a <- readStockInfo h
[66,105,108,105,-2,105,109,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32]
StockList> a
*** Exception: Prelude.chr: bad argument
The problem is the 66 in the beginning of the list. I'm not giving the entire
code, it's not needed...
What should I be using to work with such strings?
Thanks,
--
Eray Ozkural (exa)