cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Can curl handle an IRI?

From: frank ernest <doark_at_mail.com>
Date: Sun, 13 Apr 2014 18:03:53 -0400

> Not quite. IRIs are more than just IDN, as section 2.1 of RFC3987 says:>
>
>    IRIs are defined similarly to URIs in [RFC3986], but the class of
>    unreserved characters is extended by adding the characters of the UCS
>    (Universal Character Set, [ISO10646]) beyond U+007F
>
> In order to work, you need to convert the IRI to a URI and that involves
> knowledge (mostly character encoding) that curl doesn't have. See section > 3.1
> in the RFC3987: https://tools.ietf.org/html/rfc3987#section-3.1

That's what I thought but I wanted to be certain. Do you have any recomendations as to how I might detect the char encoding of a file so that I might change it to utf-8 using recode on it?
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2014-04-14