[mdk-re] вот гадость какая в expat.

AVL =?iso-8859-1?q?info_=CE=C1_atmsk=2Eru?=
Вт Дек 25 18:56:01 MSK 2001


а через этот парсер xml  все и идет в XRC в wxWindows.

-----------------------------------------------------------
How can I get expat to deal with non-ASCII characters?
By default, expat assumes that documents are encoded in UTF-8. In UTF-8,
ASCII characters are represented by a single byte as they would be in ASCII,
but non-ASCII characters are represented by a sequence of two or more bytes
all with the 8th bit set. The encoding most widely used for European
languages is ISO 8859-1 which is not compatible with UTF-8. To use this
encoding, expat must be told either by supplying an argument of "iso-8859-1"
to XML_ParserCreate, or by starting the document with <?xml version="1.0"
encoding="iso-8859-1"?>.
What encodings does expat support?
expat has built in support for the following encodings:
utf-8
utf-16
iso-8859-1
us-ascii
Additional encodings can be supported by using
XML_SetUnknownEncodingHandler.
----------------------------------------------------------------------------
-----------------

с другой стороы, есть там в исходниках вот что:

ascii.h
------------------------
.....................
#define ASCII_A 0x41
#define ASCII_B 0x42
#define ASCII_C 0x43
#define ASCII_D 0x44
#define ASCII_E 0x45
#define ASCII_F 0x46
#define ASCII_G 0x47
#define ASCII_H 0x48
#define ASCII_I 0x49
..................
------------------------

может также можно и cp1251 с koi8-r задать?






Подробная информация о списке рассылки community