xmerl and ISO-8859-1, ISO-Latin-1
Erik Reitsma EJ (RY/ETM)
erik.ej.reitsma@REDACTED
Fri Feb 18 09:11:30 CET 2005
Hi Anders and all,
I had the same problem. xmerl does not accept all aliases for encodings. I had the problem with iso-8859-1. I think that the "canonical" name would be iso_8859-1, and xmerl accepts that. But it should also accept aliases like ISO-8859-1 and my iso-8859-1. I have patched my xmerl by adding this to line 350 of ucs.erl I reported it to erlang-bugs@REDACTED but I have not received a reply to that.
Regards,
*Erik.
> On Thu, 17 Feb 2005 17:17:43 -0600, Anders Nygren
> <anders.nygren@REDACTED> wrote:
> > I have been trying to use xmerl to read some xml files that
> start with
> >
> > <?xml version="1.0" encoding="ISO-8859-1" ?>
> >
> > Erlang (BEAM) emulator version 5.4 [source] [hipe]
> >
> > 3> xmerl_scan:file("xml-callejero.txt").
> >
> > ** exited: {bad_character_code,"<callejero-sites>\r\n<numOfResults
<etc>
More information about the erlang-questions
mailing list