From 457666cba32a87356e17b308219633c831a0c1f8 Mon Sep 17 00:00:00 2001 From: Star Brilliant Date: Thu, 19 Sep 2013 22:49:41 +0800 Subject: [PATCH] Write UTF-8 BOM --- convert.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/convert.py b/convert.py index 85331dd..8560bcc 100755 --- a/convert.py +++ b/convert.py @@ -104,7 +104,8 @@ def ConvertTimestamp(timestamp): def WriteASSHead(f, width, height, fontface, fontsize, alpha): f.write( -'''[Script Info] +'''\ufeff +[Script Info] ScriptType: v4.00+ Collisions: Normal PlayResX: %(width)s