diff --git a/LICENSE.txt b/LICENSE
similarity index 100%
rename from LICENSE.txt
rename to LICENSE
diff --git a/src/index/gen_index.py b/src/index/gen_index.py
old mode 100644
new mode 100755
index 7a125a3b..e2c6d22b
--- a/src/index/gen_index.py
+++ b/src/index/gen_index.py
@@ -6,6 +6,16 @@
import sys
import os.path
+CC0_LICENSE = "rust-encoding by Kang Seonghoon
+
+To the extent possible under law, the person who associated CC0 with
+rust-encoding has waived all copyright and related or neighboring rights
+to rust-encoding.
+
+You should have received a copy of the CC0 legalcode along with this
+work. If not, see .
+"
+
def whatwg_index(name, comments):
for line in urllib.urlopen('http://encoding.spec.whatwg.org/index-%s.txt' % name):
line = line.strip()
@@ -383,4 +393,4 @@ def generate_multi_byte_range_lbound_index(crate, name):
print >>sys.stderr, 'generating index %s...' % index,
tablesz = generate(crate, index)
print >>sys.stderr, '%d bytes.' % tablesz
-
+ write_license_file(crate)
diff --git a/src/index/japanese/LICENSE b/src/index/japanese/LICENSE
new file mode 100644
index 00000000..9e376470
--- /dev/null
+++ b/src/index/japanese/LICENSE
@@ -0,0 +1,8 @@
+rust-encoding by Kang Seonghoon
+
+To the extent possible under law, the person who associated CC0 with
+rust-encoding has waived all copyright and related or neighboring rights
+to rust-encoding.
+
+You should have received a copy of the CC0 legalcode along with this
+work. If not, see .
diff --git a/src/index/korean/LICENSE b/src/index/korean/LICENSE
new file mode 100644
index 00000000..9e376470
--- /dev/null
+++ b/src/index/korean/LICENSE
@@ -0,0 +1,8 @@
+rust-encoding by Kang Seonghoon
+
+To the extent possible under law, the person who associated CC0 with
+rust-encoding has waived all copyright and related or neighboring rights
+to rust-encoding.
+
+You should have received a copy of the CC0 legalcode along with this
+work. If not, see .
diff --git a/src/index/simpchinese/LICENSE b/src/index/simpchinese/LICENSE
new file mode 100644
index 00000000..9e376470
--- /dev/null
+++ b/src/index/simpchinese/LICENSE
@@ -0,0 +1,8 @@
+rust-encoding by Kang Seonghoon
+
+To the extent possible under law, the person who associated CC0 with
+rust-encoding has waived all copyright and related or neighboring rights
+to rust-encoding.
+
+You should have received a copy of the CC0 legalcode along with this
+work. If not, see .
diff --git a/src/index/singlebyte/LICENSE b/src/index/singlebyte/LICENSE
new file mode 100644
index 00000000..9e376470
--- /dev/null
+++ b/src/index/singlebyte/LICENSE
@@ -0,0 +1,8 @@
+rust-encoding by Kang Seonghoon
+
+To the extent possible under law, the person who associated CC0 with
+rust-encoding has waived all copyright and related or neighboring rights
+to rust-encoding.
+
+You should have received a copy of the CC0 legalcode along with this
+work. If not, see .
diff --git a/src/index/tradchinese/LICENSE b/src/index/tradchinese/LICENSE
new file mode 100644
index 00000000..9e376470
--- /dev/null
+++ b/src/index/tradchinese/LICENSE
@@ -0,0 +1,8 @@
+rust-encoding by Kang Seonghoon
+
+To the extent possible under law, the person who associated CC0 with
+rust-encoding has waived all copyright and related or neighboring rights
+to rust-encoding.
+
+You should have received a copy of the CC0 legalcode along with this
+work. If not, see .