Invalid chars in character.php?key=...

Added by King_bob almost 6 years ago

I get a character 0x1F as the first character in line 1 of the XML document for the character sheet. This may be intentional but, I just want to point out http://www.w3.org/TR/2004/REC-xml-20040204/#charsets would make life easier for .NET developers if this were changed


Replies (3)

RE: Invalid chars in character.php?key=... - Added by vl almost 6 years ago

Can you provide us more information? For example the xml file?

RE: Invalid chars in character.php?key=... - Added by Nanowish almost 6 years ago

I didn't think you don't decompress Stream compressed in gzip. Thank Louvia@Aniro for repport my bad answer :p

If you programming in .NET you can decompress automaticly your request.

Exemple for C#:

HttpWebRequest request = (HttpWebRequest) WebRequest.Create("API.URL");
request.Headers.Add(HttpRequestHeader.AcceptEncoding, "gzip,deflate");
request.AutomaticDecompression = DecompressionMethods.GZip | DecompressionMethods.Deflate;

http://msdn.microsoft.com/fr-fr/library/system.net.httpwebrequest.automaticdecompression.aspx

(1-3/3)