Detect utf-16 encoded XML files.

* Increase sniffing rule priority to 0.251, otherwise files are detected
as text/plain (for anything lower than 0.25)
* Add sniffing pattern for utf-16 xml.
This commit is contained in:
Adrien Destugues
2014-10-14 11:07:29 +02:00
parent 9c0027a40d
commit a510fce212
+1 -1
View File
@@ -4,7 +4,7 @@ resource(0, "BEOS:TYPE") #'MIMS' "application/x-vnd.Be-meta-mime";
resource(1, "META:TYPE") "text/xml"; resource(1, "META:TYPE") "text/xml";
resource(2, "META:SNIFF_RULE") #'CSTR' array { resource(2, "META:SNIFF_RULE") #'CSTR' array {
"0.2 (\"<?xml\")" "0.251 [0:15] (\"<?xml\" | \"<\\000x\\000m\\000l\")"
}; };
resource(2, "META:S:DESC") #'MSDC' "XML file"; resource(2, "META:S:DESC") #'MSDC' "XML file";