cURL / Mailing Lists / curl-library / Single Mail


Re: Does curl support UTF -8

From: Jamie Lokier <>
Date: Fri, 23 Oct 2009 14:40:03 +0100

Daniel Stenberg wrote:
> On Fri, 23 Oct 2009, wrote:
> >I wanted to connect to a URL which is encoded in UTF - 8 . It has some
> >chinese characters (say) or Danish characters.
> A URL is a URL, libcurl doesn't care about what possible characters it
> contains of as long as it adheres to the URL (or rather URI) spec.

URIs (and URLs) do not contain non-ASCII characters.

shivanand is describing an *IRI*.

So the answer is to learn about IRI-to-URI conversion.

The methods are quite different depending on whether the international
characters are in the domain name or the rest of the IRI.

-- Jamie
List admin:
Received on 2009-10-23