[Haskell-cafe] Character encoding?

Antoine Latter aslatter at gmail.com
Sun Dec 26 17:10:37 CET 2010


A 'Char' in Haskell represents a single Unicode code point.

On Sun, Dec 26, 2010 at 10:04 AM, michael rice <nowgate at yahoo.com> wrote:

> How are characters encoded?
>
> *Main System.Random Control.Monad.State.Lazy> random (mkStdGen 0) ::
> (Char,StdGen)
> ('\64685',40014 40692)
> *Main System.Random Control.Monad.State.Lazy> random (snd it) ::
> (Char,StdGen)
> ('\1052295',1601120196 1655838864)
> *Main System.Random Control.Monad.State.Lazy> random (snd it) ::
> (Char,StdGen)
> ('\639025',1346387765 2103410263)
> *Main System.Random Control.Monad.State.Lazy> random (snd it) ::
> (Char,StdGen)
> ('\625672',439883729 1872071452)
>
> Michael
>
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20101226/bc62513c/attachment.htm>


More information about the Haskell-Cafe mailing list