* xmlSwitchToEncoding: * @ctxt: the parser context * @handler: the encoding handler * * Use encoding handler to decode input data. * * This function can be used to enforce the encoding of chunks passed * to xmlParseChunk. * * Returns 0 in case of success, -1 otherwise */
| 1257 | * Returns 0 in case of success, -1 otherwise |
| 1258 | */ |
| 1259 | int |
| 1260 | xmlSwitchToEncoding(xmlParserCtxtPtr ctxt, xmlCharEncodingHandlerPtr handler) |
| 1261 | { |
| 1262 | if (ctxt == NULL) |
| 1263 | return(-1); |
| 1264 | return(xmlSwitchInputEncoding(ctxt, ctxt->input, handler)); |
| 1265 | } |
| 1266 | |
| 1267 | /** |
| 1268 | * xmlDetectEncoding: |
nothing calls this directly
no test coverage detected