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
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
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
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 |
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
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