From 6d9be1e46e6c6324d723a61ab1e39d3c04a35002 Mon Sep 17 00:00:00 2001 From: Wei Chen Date: Sat, 10 May 2025 13:04:40 -0500 Subject: [PATCH] HKO changed calendar text file encoding from BIG5 to UTF8 --- lunar_ical.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lunar_ical.py b/lunar_ical.py index 604ecbf..cbc5f0f 100755 --- a/lunar_ical.py +++ b/lunar_ical.py @@ -125,7 +125,7 @@ def parse_hko(pageurl): print('grabbing and parsing %s' % pageurl) with urllib.request.urlopen(pageurl) as f: html = f.read() - lines = html.decode('big5').split('\n') + lines = html.decode('utf-8').split('\n') sql_nojq = ('insert or replace into ical (date,lunardate) ' 'values(?,?) ')