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:
parent
9c0027a40d
commit
a510fce212
@ -4,7 +4,7 @@ resource(0, "BEOS:TYPE") #'MIMS' "application/x-vnd.Be-meta-mime";
|
||||
resource(1, "META:TYPE") "text/xml";
|
||||
|
||||
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";
|
||||
|
Loading…
Reference in New Issue
Block a user