dakrone / clj-http

An idiomatic clojure http client wrapping the apache client. Officially supported version.
http://clojars.org/clj-http
MIT License
1.78k stars 408 forks source link

How can I set the encoding-pattern like slurp? #586

Closed temco closed 3 years ago

temco commented 3 years ago

With slurp, I could set the encoding-pattern of the target page, like (slurp "https://xxx.com" :encoding "utf-8"). How can I do this with clj-http? Thanks a lot.

rymndhng commented 3 years ago

See https://github.com/dakrone/clj-http#output-coercion.

There are some options there for coercing the output encoding.

temco commented 3 years ago

See https://github.com/dakrone/clj-http#output-coercion.

There are some options there for coercing the output encoding.

thanks