jumaris / indyproject

Automatically exported from code.google.com/p/indyproject
0 stars 0 forks source link

DetectXmlCharset() does not return UTF-8 when no Encoding is present #256

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
In TIdHTTP, when a response Content-Type is "application/xml" or similar, the 
XML's charset is supposed to be used, regardless of any charset specified in 
the HTTP header. If no Encoding is specified in the XML prolog, UTF-8 must be 
used, per the XML spec.  However, DetectXmlCharset() does not return UTF-8 
correctly when an Encoding is omitted.

Original issue reported on code.google.com by gambit47 on 19 Jun 2013 at 8:13

GoogleCodeExporter commented 9 years ago
Implemented in SVN rev 5014

Original comment by gambit47 on 24 Nov 2014 at 2:48