encoding ISO-8859-1 to UTF-8 in std.net.curl
ag0aep6g via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Mon Aug 8 17:00:46 PDT 2016
On 08/09/2016 12:05 AM, Alexsej wrote:
> //header from server
> server: nginx
> date: Mon, 08 Aug 2016 22:02:15 GMT
> content-type: text/xml; Charset=utf-8
> content-length: 204
> connection: keep-alive
> vary: Accept-Encoding
> cache-control: private
> expires: Mon, 08 Aug 2016 22:02:15 GMT
> set-cookie: ASPSESSIONIDSSCCDASA=KIAPMCMDMPEDHPBJNMGFHMEB; path=/
> x-powered-by: ASP.NET
Looks like std.net.curl doesn't handle "Charset" correctly. It only
works with lowercase "charset".
https://github.com/dlang/phobos/pull/4723
More information about the Digitalmars-d-learn
mailing list