OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Re: Shared text entities and encoding



> My XML documents use ISO-8859-1 as encoding. If I try to use a file like
> <!ENTITY rev "/main/1">
> <!ENTITY date "19. März 2003">
> <!ENTITY month "März 2003">
> for my global entities, and reference it in my XML file xmllint does not 
> like this:
...
> file.ent:2: error: Bytes: 0xE4 0x72 0x7A 0x20
> <!ENTITY date "19. Mőrz 2003">
>                      ^
> So how do I tell xmllint that the encoding in my entity file is ISO-8859-1?
> Or how do I setup my entity file correctly?

Just add encoding declaration to the very beginning of your entity file:

<?xml version="1.0" encoding="iso-8859-1"?>
<!ENTITY ...>

				Jirka

BTW: Sorry for delay, but list manager kicked me off.

-- 
-----------------------------------------------------------------
  Jirka Kosek  	                     
  e-mail: jirka@kosek.cz
  http://www.kosek.cz


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]