Re: xml utf-8 encoding error

2017-08-29 Thread graw-prog via Digitalmars-d-learn
On Tuesday, 29 August 2017 at 15:55:50 UTC, Adam D. Ruppe wrote: On Tuesday, 29 August 2017 at 04:41:34 UTC, graw-prog wrote: I'm not sure what the problem is. It seems to be may the lowercase 'utf-8' in the charset section but I'm not sure if the problem is some mistake I made, a bug in DMD

Re: xml utf-8 encoding error

2017-08-29 Thread Kagamin via Digitalmars-d-learn
On Tuesday, 29 August 2017 at 15:55:50 UTC, Adam D. Ruppe wrote: http://dpldocs.info/experimental-docs/source/std.net.curl.d.html#L2470 Ow, annotated sources, cool. pre { box-sizing: border-box; overflow: auto; max-width: 800px; /* The script sets the real one */

Re: xml utf-8 encoding error

2017-08-29 Thread Adam D. Ruppe via Digitalmars-d-learn
On Tuesday, 29 August 2017 at 04:41:34 UTC, graw-prog wrote: I'm not sure what the problem is. It seems to be may the lowercase 'utf-8' in the charset section but I'm not sure if the problem is some mistake I made, a bug in DMD or just lousy xml. Either way is there any way around this issue?

Re: xml utf-8 encoding error

2017-08-29 Thread ag0aep6g via Digitalmars-d-learn
On 08/29/2017 05:41 PM, Kagamin wrote: On Tuesday, 29 August 2017 at 04:41:34 UTC, graw-prog wrote: < Content-Type: text/xml; charset="utf-8" Should be Content-Type: text/xml; charset=utf-8 HTTP allows a quoted string there. https://tools.ietf.org/html/rfc7231#section-3.1.1.1

Re: xml utf-8 encoding error

2017-08-29 Thread Adam D. Ruppe via Digitalmars-d-learn
On Tuesday, 29 August 2017 at 15:41:58 UTC, Kagamin wrote: Should be Content-Type: text/xml; charset=utf-8 I'm pretty sure both are equally legal.

Re: xml utf-8 encoding error

2017-08-29 Thread Kagamin via Digitalmars-d-learn
On Tuesday, 29 August 2017 at 04:41:34 UTC, graw-prog wrote: < Content-Type: text/xml; charset="utf-8" Should be Content-Type: text/xml; charset=utf-8

xml utf-8 encoding error

2017-08-28 Thread graw-prog via Digitalmars-d-learn
Hi, I'm having some trouble getting an xml file using std.net.curl. I'm using get() to receive device info from a roku television using this code: char[] inputQuery(string input) { string url = ip ~ "query/" ~ input; auto client = HTTP(); auto content = get(url,client);