Lodle
Lodle

Reputation: 32207

How can I download a utf-8-encoded web page with libcurl, preserving the encoding?

Im trying to get libcurl to download a webpage that is encoded in UTF-8, which is working fine, except for the fact that it converts it to ASCII and screws up some of the characters. Is there an easy way to get it to keep it in UTF-8?

Upvotes: 1

Views: 1695

Answers (2)

Daniel Stenberg
Daniel Stenberg

Reputation: 58004

libcurl doesn't translate/convert the data at all so there's actually nothing particular you need to do. Just get it.

Upvotes: 2

karlcow
karlcow

Reputation: 6972

Check the CURL options for conversion. They might have been defined at compilation time.

Upvotes: 1

Related Questions