
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

On Sun, Dec 26, 2010 at 08:04:41AM -0800, michael rice wrote:
How are characters encoded?
A Char is a type that holds a single Unicode codepoint from one of the 17 planes. As a codepoint is just a number without any defined representation, it doesn't have an 'encoding'. -- Lars Viklund | zao@acc.umu.se

Your explanation sounds a bit like string theory. ;-)
Thanks,
Michael
--- On Sun, 12/26/10, Lars Viklund
How are characters encoded?
A Char is a type that holds a single Unicode codepoint from one of the 17 planes. As a codepoint is just a number without any defined representation, it doesn't have an 'encoding'. -- Lars Viklund | zao@acc.umu.se _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

A 'Char' in Haskell represents a single Unicode code point.
On Sun, Dec 26, 2010 at 10:04 AM, michael rice
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@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
participants (3)
-
Antoine Latter
-
Lars Viklund
-
michael rice