aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/easy.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/easy.c b/lib/easy.c
index 25d4897b6..37c0c9a01 100644
--- a/lib/easy.c
+++ b/lib/easy.c
@@ -612,6 +612,12 @@ CURL *curl_easy_duphandle(CURL *incurl)
break;
#endif
+#if defined(CURL_DOES_CONVERSIONS) && defined(HAVE_ICONV)
+ outcurl->outbound_cd = data->outbound_cd;
+ outcurl->inbound_cd = data->inbound_cd;
+ outcurl->utf8_cd = data->utf8_cd;
+#endif
+
Curl_easy_initHandleData(outcurl);
fail = FALSE; /* we reach this point and thus we are OK */