mirror of
https://github.com/infinet/lunar-calendar.git
synced 2026-01-12 13:15:28 +08:00
HKO changed calendar text file encoding from BIG5 to UTF8
This commit is contained in:
@@ -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(?,?) ')
|
||||
|
||||
Reference in New Issue
Block a user