cURL / Mailing Lists / curl-users / Single Mail

curl-users

How to handle non-ASCII characters in URLs

From: G. T. Stresen-Reuter <tedmasterweb_at_gmail.com>
Date: Fri, 9 Jan 2009 17:50:50 +0000

If I am trying to delete a file named "espaņa.txt", what would the
curl command look like?

curl -u "user:password" "ftp://domain.com/espa%f1a.txt" -Q "dele /
espaņa.txt"

The above returns a FTP 550 error.

I assume the "ņ" needs to be percent encoded, but I was hoping for
some confirmation/enlightenment before heading down that path with my
script.

Thanks in advance.

Ted Stresen-Reuter

-------------------------------------------------------------------
List admin: http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2009-01-09