Re: [ILUG] XML & UTF Encoding

From: David Neary (bolsh at domain gimp.org)
Date: Wed 24 Apr 2002 - 09:13:29 IST


Stephane Dudzinski wrote:
> Hello,
>
> That is probably an off-topic subject but i'm a bit confused with it.
> I've been using xsltproc under Linux to translate documents from English
> to French.
>
> If i try to put any é è characters types, xml complains
> when i build my html from xml saying :
> ../xml/build.xml:16: error: Entity 'eacute' not defined
>
> In order to get this error i indicated to XML that the type of encoding
> was (and is) UTF-8 by modifying this tag :
> <?xml version='1.0' encoding="UTF-8"?>
>
> It was ISO8859-1 before which does not suit me. If anyone has been
> around this before, any help appreciated.

eacute is hex c3a9 in unicode. The only way I've found to do this
kind of thing is to load the old html in a unicode-capable html
editor (Mozilla's worked for me), save with explicit unicode
encoding, and the old single-char stuff gets re-written as
multibyte characters.

Cheers,
Dave.

-- 
       David Neary,
    Marseille, France
  E-Mail: bolsh at domain gimp.org


This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:16:20 GMT