summaryrefslogtreecommitdiff
path: root/test/data/csdetect/bom-charset.dat
diff options
context:
space:
mode:
Diffstat (limited to 'test/data/csdetect/bom-charset.dat')
-rw-r--r--test/data/csdetect/bom-charset.dat21
1 files changed, 21 insertions, 0 deletions
diff --git a/test/data/csdetect/bom-charset.dat b/test/data/csdetect/bom-charset.dat
new file mode 100644
index 0000000..b6eb9f7
--- /dev/null
+++ b/test/data/csdetect/bom-charset.dat
@@ -0,0 +1,21 @@
+#data
+@charset "UTF-8";html{color:green}
+/* starts with utf-8 bom */
+#encoding
+utf-8
+
+#data
+@charset "ISO-8859-1";html{color:green}
+/* starts with utf-8 bom, so @charset is ignored */
+#encoding
+utf-8
+
+#data
+@charset "ISO-8859-2";html{color:green}
+#encoding
+iso-8859-2
+
+#data
+@charset "IMadeThisUp";html{color:green}
+#encoding
+utf-8