diff --git a/generate_emoji_html.py b/generate_emoji_html.py
index 9516a23e56..02b108a0a5 100755
--- a/generate_emoji_html.py
+++ b/generate_emoji_html.py
@@ -73,7 +73,7 @@ def _cell(info, basepath):
return 'missing'
def _text_cell(text_dir):
- text = ''.join(unichr(cp) for cp in key)
+ text = ''.join(chr(cp) for cp in key)
return '%s' % (text_dir, text)
if font: