case "$LANG" in
ja|ko) ENCODING="UTF-8";;
zh_tw|zh_hk) ENCODING="big5";;
zh_cn) ENCODING="gb2312";;
cs|hu|pl|ro|sk) ENCODING="ISO-8859-2";;
ar) ENCODING="ISO-8859-6";;
tr) ENCODING="ISO-8859-9";;
he) ENCODING="ISO-8859-8";;
ru) ENCODING="windows-1251";;
*) ENCODING="ISO-8859-1";;
esac
So only ja and ko uses UTF-8, all the others use different encodings
;)
That's most likely what J was emulating, then. But when I make an html
build (any) of cs, which should be ISO-8859-2 (and which is encoded as
such) I get err msgs saying that chars are out of range or
(alternatively) that they are not UTF8 chars. This from xsltproc. Any
clues? - or should I just experiment with making the whole lot UTF8?
If XML files contain an encoding specification, it should work. If they are without an encoding header, they are assumed to be UTF8 (as written in the XML spec).
Goba