ICU-1220 oops. use UCNV_ESCAPE_XML_HEX for escape-xml-hex!
X-SVN-Rev: 7407
This commit is contained in:
parent
550c0e205e
commit
72a06de4e9
@ -55,6 +55,7 @@ Unicode, and then from Unicode to the destination encoding).
|
|||||||
It is possible to specify callbacks that are used to handle invalid
|
It is possible to specify callbacks that are used to handle invalid
|
||||||
characters in the input, or characters that cannot be transcoded to
|
characters in the input, or characters that cannot be transcoded to
|
||||||
the destination encoding.
|
the destination encoding.
|
||||||
|
.PP
|
||||||
.B uconv
|
.B uconv
|
||||||
can also run the transcoding through a specified
|
can also run the transcoding through a specified
|
||||||
.IR transliterator ,
|
.IR transliterator ,
|
||||||
|
@ -94,7 +94,7 @@ static struct callback_ent {
|
|||||||
{ "escape-c", UCNV_FROM_U_CALLBACK_ESCAPE, UCNV_ESCAPE_C, UCNV_TO_U_CALLBACK_ESCAPE, UCNV_ESCAPE_C },
|
{ "escape-c", UCNV_FROM_U_CALLBACK_ESCAPE, UCNV_ESCAPE_C, UCNV_TO_U_CALLBACK_ESCAPE, UCNV_ESCAPE_C },
|
||||||
{ "escape-xml", UCNV_FROM_U_CALLBACK_ESCAPE, UCNV_ESCAPE_XML_DEC, UCNV_TO_U_CALLBACK_ESCAPE, UCNV_ESCAPE_XML_DEC },
|
{ "escape-xml", UCNV_FROM_U_CALLBACK_ESCAPE, UCNV_ESCAPE_XML_DEC, UCNV_TO_U_CALLBACK_ESCAPE, UCNV_ESCAPE_XML_DEC },
|
||||||
{ "escape-xml-dec", UCNV_FROM_U_CALLBACK_ESCAPE, UCNV_ESCAPE_XML_DEC, UCNV_TO_U_CALLBACK_ESCAPE, UCNV_ESCAPE_XML_DEC },
|
{ "escape-xml-dec", UCNV_FROM_U_CALLBACK_ESCAPE, UCNV_ESCAPE_XML_DEC, UCNV_TO_U_CALLBACK_ESCAPE, UCNV_ESCAPE_XML_DEC },
|
||||||
{ "escape-xml-hex", UCNV_FROM_U_CALLBACK_ESCAPE, UCNV_ESCAPE_XML_DEC, UCNV_TO_U_CALLBACK_ESCAPE, UCNV_ESCAPE_XML_DEC }
|
{ "escape-xml-hex", UCNV_FROM_U_CALLBACK_ESCAPE, UCNV_ESCAPE_XML_HEX, UCNV_TO_U_CALLBACK_ESCAPE, UCNV_ESCAPE_XML_HEX }
|
||||||
};
|
};
|
||||||
|
|
||||||
static const struct callback_ent *findCallback(const char *name) {
|
static const struct callback_ent *findCallback(const char *name) {
|
||||||
|
Loading…
Reference in New Issue
Block a user