[newbie] UTF-8

2003-08-14 Thread Danon'.
Hi, We try to make a program which write on stdout the UTF-8 character corresponding to an input unicode value. And this under MacOS X, Debian linux, and Windows. It seems to be easy, but we can't have found anything valuable, on the net. Would you mind to help us? Niko. Ps: excuse my poor e

Re: [newbie] UTF-8

2003-08-14 Thread Wolfgang Jeltsch
On Sunday, 2003-08-10, 19:27, CEST, Danon'. wrote: > Hi, > > We try to make a program which write on stdout the UTF-8 character > corresponding to an input unicode value. UTF-8 encodes each unicode value as a stream of octets. So there are two mistakes in your sentence above: 1. You want to o

Re: [newbie] UTF-8

2003-08-14 Thread Marcin 'Qrczak' Kowalczyk
Dnia pon 11. sierpnia 2003 00:49, Wolfgang Jeltsch napisał: > The main problem is that you need binary I/O. Haskell 98 only provides text > I/O. You don't need binary I/O for UTF-8 now; because implementations use ISO-8859-1, UTF-8 octets can be faked as characters by (chr . fromIntegral). > Th

Re: [newbie] UTF-8

2003-08-11 Thread Ketil Z. Malde
Marcin 'Qrczak' Kowalczyk <[EMAIL PROTECTED]> writes: > Dnia pon 11. sierpnia 2003 00:49, Wolfgang Jeltsch napisał: >> The main problem is that you need binary I/O. Haskell 98 only provides text >> I/O. > You don't need binary I/O for UTF-8 now; because implementations use > ISO-8859-1, UTF-8 o