Re: [Haskell-cafe] character encoding problems with hxt (I think)

2012-10-14 Thread Uwe Schmidt (FH Wedel)
Hi Henry, it's not an encoding error but an error concerning the validation of the document. The document /usr/share/xml/iso-codes/iso_3166_2.xml is not valid with respect to its internal DTD. The opening tag iso_3166_country code=GH on line 3711 does not have a closing tag. That closing tag

[Haskell-cafe] character encoding problems with hxt (I think)

2012-10-13 Thread nadine . and . henry
Dear Haskellers, I'm trying to write some code that grabs countries and provinces from the iso_3166 files on Linux systems. I seem to be running into some kind of character encoding problem. file says iso_3166_2.xml is a utf8 file, and isutf8 agrees, but when I run the following code, it

[Haskell-cafe] Character encoding?

2010-12-26 Thread 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

Re: [Haskell-cafe] Character encoding?

2010-12-26 Thread Lars Viklund
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 |

Re: [Haskell-cafe] Character encoding?

2010-12-26 Thread Antoine Latter
A 'Char' in Haskell represents a single Unicode code point. On Sun, Dec 26, 2010 at 10:04 AM, michael rice nowg...@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

Re: [Haskell-cafe] Character encoding?

2010-12-26 Thread michael rice
Your explanation sounds a bit like string theory.  ;-) Thanks, Michael --- On Sun, 12/26/10, Lars Viklund z...@acc.umu.se wrote: From: Lars Viklund z...@acc.umu.se Subject: Re: [Haskell-cafe] Character encoding? To: haskell-cafe@haskell.org Date: Sunday, December 26, 2010, 11:09 AM On Sun