edicl/drakma — pull request #37 by rwiker (2013-10-02 06:24:44+00:00)
Title: Make POST requests use external-format-out for multipart/form-data.

With this change, POST requests that use multipart/form-data will use
external-format-out for encoding, instead of :latin-1. Without this
change, an attempt to use characters outside the :latin-1 range (e.g,
U+2011, "n-dash") would cause an exception while building the request.

Note: it would be possible to only do this for strings that have
characters that are not standard-char.

Example/test case:

(handler-bind
((error (lambda (condition) (break))))
(drakma:http-request "http://some.server/some/path"
:method :post
:external-format-in :utf-8
:external-format-out :utf-8
:parameters (list
(cons "file" #p"some/local/file")
(cons "foo" (string (code-char 8211))))))

--- modify to use a reachable web server and existing file.