mirror of
https://github.com/infinet/lunar-calendar.git
synced 2026-01-12 21:17:00 +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)
|
print('grabbing and parsing %s' % pageurl)
|
||||||
with urllib.request.urlopen(pageurl) as f:
|
with urllib.request.urlopen(pageurl) as f:
|
||||||
html = f.read()
|
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) '
|
sql_nojq = ('insert or replace into ical (date,lunardate) '
|
||||||
'values(?,?) ')
|
'values(?,?) ')
|
||||||
|
|||||||
Reference in New Issue
Block a user