1XML2ASC(1)                      HTML-XML-utils                      XML2ASC(1)
2
3
4

NAME

6       xml2asc - convert UTF-8 to &#nnn; entities
7

SYNOPSIS

9       xml2asc
10

DESCRIPTION

12       Reads  an UTF-8 encoded text from standard input and writes to standard
13       output, converting all non-ASCII characters to &#nnn; entities, so that
14       the result is ASCII-encoded.
15
16       One example use is to convert ISO-8859-1 to ASCII with &#nnn; entities,
17       by first running asc2xml to convert ISO-8859-1 to UTF-8 and  then  pipe
18       the  result  into  xml2asc to convert to ASCII with &#nnn; entities for
19       all accented characters.
20

DIAGNOSTICS

22       xml2asc returns with a non-zero exit code if the input was not UTF-8.
23

SEE ALSO

25       asc2xml(1), UTF-8 (RFC 2279)
26

BUGS

28       Doesn't distinguish mark-up from content, so if  the  input  uses  non-
29       ASCII characters in XML element names, they will be output with numeriā€
30       cal entities in them, which is not legal in XML.
31
32
33
345.x                               21 Nov 2008                       XML2ASC(1)
Impressum