ler = xmlFindCharEncodingHandler(encoding);

                if (!handler) {
                        free(out);
                        out = NULL;
                }
        }
        if (out) {
                temp=size-1;
                ret = handler-&gt;input(out, &amp;out_size, in, &amp;temp);
                if (ret || temp-size+1) {
                        if (ret) {
                                printf("conversion wasn't successful.\n");
                        } else {
                           